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

.

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