Commit 6918b40d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent efea32c2
...@@ -46,20 +46,20 @@ import ( ...@@ -46,20 +46,20 @@ import (
// //
// DB is safe to access from multiple goroutines simultaneously. // DB is safe to access from multiple goroutines simultaneously.
type DB struct { type DB struct {
stor IStorage stor IStorage
mu sync.Mutex mu sync.Mutex
connv []*Connection // order by ↑= .at connv []*Connection // order by ↑= .at
// information about invalidations // information about invalidations
// XXX -> Storage. XXX or -> Cache? (so it is not duplicated many times for many DB case) // 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. // invEntry describes invalidations caused by a database transaction.
type invEntry struct { type invEntry struct {
tid Tid tid Tid
oidv []Oid oidv []Oid
} }
...@@ -124,7 +124,6 @@ func (db *DB) Open(ctx context.Context, opt *ConnOptions) (_ *Connection, err er ...@@ -124,7 +124,6 @@ func (db *DB) Open(ctx context.Context, opt *ConnOptions) (_ *Connection, err er
at = head at = head
} }
// wait till .invTab is up to date covering ≥ lastTid // wait till .invTab is up to date covering ≥ lastTid
// XXX reenable // XXX reenable
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment