Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
f7b570c2
Commit
f7b570c2
authored
Aug 08, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
26d111af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
go/zodb/db.go
go/zodb/db.go
+6
-2
No files found.
go/zodb/db.go
View file @
f7b570c2
...
@@ -72,7 +72,8 @@ func NewDB(stor IStorage) *DB {
...
@@ -72,7 +72,8 @@ func NewDB(stor IStorage) *DB {
// The connection is opened to current latest database state.
// The connection is opened to current latest database state.
//
//
// Open must be called under transaction.
// Open must be called under transaction.
// Opened connection must be used under the same transaction only.
// Opened connection must be used only under the same transaction and only
// until that transaction is complete.
//
//
// XXX text
// XXX text
//
//
...
@@ -163,7 +164,10 @@ func (db *DB) get(at Tid) *Connection {
...
@@ -163,7 +164,10 @@ func (db *DB) get(at Tid) *Connection {
// put puts connection back into db pool.
// put puts connection back into db pool.
func
(
db
*
DB
)
put
(
conn
*
Connection
)
{
func
(
db
*
DB
)
put
(
conn
*
Connection
)
{
// XXX assert conn.db == db
if
conn
.
db
!=
db
{
panic
(
"DB.put: conn.db != db"
)
}
conn
.
txn
=
nil
conn
.
txn
=
nil
db
.
mu
.
Lock
()
db
.
mu
.
Lock
()
...
...
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