Commit 6cb712f0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 53148c8e
......@@ -145,6 +145,8 @@ type ΔValue struct {
// .ForgetPast(revCut) - forget changes past revCut
// .SliceByRev(lo, hi) -> []δB - XXX
// .SliceByRootRev(root, lo, hi) -> []δT - XXX
//
// XXX also:
// .Get(root, key, at) - get root[key] @at assuming root[key] ∈ tracked
//
// An example for tracked set is a set of visited BTree paths.
......@@ -1403,15 +1405,12 @@ func (δBtail *ΔBtail) Get(ctx context.Context, root *Tree, key Key, at zodb.Ti
if err != nil || !ok {
return
}
v, ok := xvalue.(zodb.IPersistent)
if !ok {
err = fmt.Errorf("got %T; expect ZODB persistent reference", xvalue)
value, err = vOid(xvalue)
if err != nil {
ok = false
return
}
value = v.POid()
ok = true
return
}
......
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