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
6918b40d
Commit
6918b40d
authored
Aug 08, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
efea32c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
go/zodb/db.go
go/zodb/db.go
+6
-7
No files found.
go/zodb/db.go
View file @
6918b40d
...
...
@@ -46,20 +46,20 @@ import (
//
// DB is safe to access from multiple goroutines simultaneously.
type
DB
struct
{
stor
IStorage
stor
IStorage
mu
sync
.
Mutex
connv
[]
*
Connection
// order by ↑= .at
mu
sync
.
Mutex
connv
[]
*
Connection
// order by ↑= .at
// information about invalidations
// XXX -> Storage. XXX or -> Cache? (so it is not duplicated many times for many DB case)
invTab
[]
invEntry
// order by ↑= .tid
invTab
[]
invEntry
// order by ↑= .tid
}
// invEntry describes invalidations caused by a database transaction.
type
invEntry
struct
{
tid
Tid
oidv
[]
Oid
tid
Tid
oidv
[]
Oid
}
...
...
@@ -124,7 +124,6 @@ func (db *DB) Open(ctx context.Context, opt *ConnOptions) (_ *Connection, err er
at
=
head
}
// wait till .invTab is up to date covering ≥ lastTid
// XXX reenable
/*
...
...
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