Commit ee79a1ad authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent bb321bc9
...@@ -58,7 +58,7 @@ type Value = zodb.Oid // XXX assumes key points to IPersistent ...@@ -58,7 +58,7 @@ type Value = zodb.Oid // XXX assumes key points to IPersistent
// //
// XXX which operations are provided. // XXX which operations are provided.
// //
// - GetAt(root, key, at) // - Get(root, key, at)
// //
// An example for tracked set is a set of visited BTree paths. // An example for tracked set is a set of visited BTree paths.
// There is no requirement that tracked set belongs to only one single BTree. // There is no requirement that tracked set belongs to only one single BTree.
...@@ -233,7 +233,7 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) []ΔTree { ...@@ -233,7 +233,7 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) []ΔTree {
// entries in .δZtail into account. // entries in .δZtail into account.
// func (btail *ΔTail) update() // func (btail *ΔTail) update()
// GetAt returns root[key] as of @at database state plus revision that changed it. // Get returns root[key] as of @at database state plus revision that changed it.
// //
// if revExact=False - rev is upper estimate for the revision. // if revExact=False - rev is upper estimate for the revision.
// //
...@@ -241,7 +241,7 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) []ΔTree { ...@@ -241,7 +241,7 @@ func (btail *ΔTail) Update(δZ *zodb.EventCommit) []ΔTree {
// //
// XXX at must ∈ (tail, head] XXX [tail ? // XXX at must ∈ (tail, head] XXX [tail ?
// XXX key must be tracked? // XXX key must be tracked?
func (btail *ΔTail) GetAt(root *Tree, key Key, at zodb.Tid) (value Value, ok bool, rev zodb.Tid, revExact bool) { func (btail *ΔTail) Get(root *Tree, key Key, at zodb.Tid) (value Value, ok bool, rev zodb.Tid, revExact bool) {
// XXX key not tracked -> panic // XXX key not tracked -> panic
// XXX at not ∈ (tail, head] -> panic // XXX at not ∈ (tail, head] -> panic
......
...@@ -105,7 +105,7 @@ func (δf *ΔFTail) Update(δZ *zodb.EventCommit) ΔFentry { ...@@ -105,7 +105,7 @@ func (δf *ΔFTail) Update(δZ *zodb.EventCommit) ΔFentry {
func (f *BigFile) LastBlkRev(blk int64, at zodb.Tid) (_ zodb.Tid, exact bool) { func (f *BigFile) LastBlkRev(blk int64, at zodb.Tid) (_ zodb.Tid, exact bool) {
δf := f.head.bfdir.δFtail δf := f.head.bfdir.δFtail
zblkOid, ok, tabRev, tabRevExact := δf.ΔTail.GetAt(f.zfile.blktab, blk, at) zblkOid, ok, tabRev, tabRevExact := δf.ΔTail.Get(f.zfile.blktab, blk, at)
// block was removed // block was removed
// XXX or not in tracked set? // XXX or not in tracked set?
......
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