Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
75a0c643
Commit
75a0c643
authored
Jul 30, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bed9a661
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
go/zodb/connection.go
go/zodb/connection.go
+2
-0
go/zodb/db.go
go/zodb/db.go
+7
-3
go/zodb/zodb.go
go/zodb/zodb.go
+4
-1
No files found.
go/zodb/connection.go
View file @
75a0c643
...
...
@@ -39,6 +39,8 @@ import (
//
// Connection and objects obtained from it must be used by application only
// inside transaction where Connection was opened.
//
// Use DB.Open to open a connection.
type
Connection
struct
{
stor
IStorage
// underlying storage
db
*
DB
// Connection is part of this DB
...
...
go/zodb/db.go
View file @
75a0c643
...
...
@@ -61,10 +61,12 @@ func NewDB(stor IStorage) *DB {
return
&
DB
{
stor
:
stor
}
}
// Open opens new connection to the database.
XXX @lastTid
// Open opens new connection to the database.
//
// XXX must be called under transaction.
// XXX connectin must be used under the same transaction only.
// The connection is opened to current latest database state.
//
// Open must be called under transaction.
// Opened connection must be used under the same transaction only.
//
// XXX text
//
...
...
@@ -190,5 +192,7 @@ func (csync *connTxnSync) AfterCompletion(txn transaction.Transaction) {
conn
:=
(
*
Connection
)(
csync
)
conn
.
checkTxn
(
txn
,
"AfterCompletion"
)
// XXX check that conn was explicitly closed by user?
conn
.
db
.
put
(
conn
)
}
go/zodb/zodb.go
View file @
75a0c643
...
...
@@ -337,7 +337,10 @@ type IStorageDriver interface {
// To simplify drivets, there must be only 1 logical user of
// storage-driver level notifier interface. Ccontrary IStorage allows
// for several users of notification channel. XXX ok?
Notifier
()
Notifier
//
// XXX -> nil, if driver does not support notifications?
// XXX or always support them, even with FileStorage (inotify)?
//Notifier() Notifier
}
// Loader provides functionality to load objects.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment