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

.

parent efea32c2
......@@ -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
/*
......
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