Commit 38d47c62 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 67a29ab6
......@@ -264,10 +264,14 @@ func (δΒtail *ΔTail) Get(root *Tree, key Key, at zodb.Tid) (value Value, ok b
// XXX key not tracked -> panic
// XXX at not ∈ (tail, head] -> panic
// XXX dirty -> rebuild
// XXX stub -> that only ZBlk.rev is used
// XXX -> index lastXXXOf(key) | linear scan ↓ looking for change <= at
δTtail := δΒtail.byRoot[root]
// XXX nil -> ?
for i := len(δTtail.vδT)-1; i >= 0; i-- {
δT := δTtail.vδT[i]
if at < δT.Rev {
......
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