Commit 5d8b2331 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4f1846bc
...@@ -1509,6 +1509,8 @@ func (δBtail *ΔBtail) ForgetPast(revCut zodb.Tid) { ...@@ -1509,6 +1509,8 @@ func (δBtail *ΔBtail) ForgetPast(revCut zodb.Tid) {
// //
// key must be tracked // key must be tracked
// at must ∈ (tail, head] // at must ∈ (tail, head]
//
// XXX root -> Oid ?
func (δBtail *ΔBtail) GetAt(ctx context.Context, root *Tree, key Key, at zodb.Tid) (value Value, ok bool, rev zodb.Tid, revExact bool, err error) { func (δBtail *ΔBtail) GetAt(ctx context.Context, root *Tree, key Key, at zodb.Tid) (value Value, ok bool, rev zodb.Tid, revExact bool, err error) {
defer xerr.Contextf(&err, "δBtail: root<%s>: get %d @%s", root.POid(), key, at) defer xerr.Contextf(&err, "δBtail: root<%s>: get %d @%s", root.POid(), key, at)
// XXX key not tracked -> panic // XXX key not tracked -> panic
...@@ -1586,7 +1588,9 @@ func (δBtail *ΔBtail) SliceByRev(lo, hi zodb.Tid) /*readonly*/ []ΔB { ...@@ -1586,7 +1588,9 @@ func (δBtail *ΔBtail) SliceByRev(lo, hi zodb.Tid) /*readonly*/ []ΔB {
// the caller must not modify returned slice. // the caller must not modify returned slice.
// //
// Note: contrary to regular go slicing, low is exclusive while high is inclusive. // Note: contrary to regular go slicing, low is exclusive while high is inclusive.
func (δBtail *ΔBtail) SliceByRootRev(root *Tree, lo, hi zodb.Tid) /*readonly*/[]ΔTree { //
// XXX root -> *Tree ?
func (δBtail *ΔBtail) SliceByRootRev(root zodb.Oid, lo, hi zodb.Tid) /*readonly*/[]ΔTree {
δassertSlice(δBtail, lo, hi) δassertSlice(δBtail, lo, hi)
panic("TODO") panic("TODO")
} }
......
...@@ -1079,7 +1079,7 @@ func ___xverifyΔBTail_GetAt(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, vt .. ...@@ -1079,7 +1079,7 @@ func ___xverifyΔBTail_GetAt(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, vt ..
} }
t.Run(fmt.Sprintf("track=%s", keys), func(t *testing.T) { t.Run(fmt.Sprintf("track=%s", keys), func(t *testing.T) {
xverifyΔBTail_Get1(t, db, treeRoot, vt, xat, keys) xverifyΔBTail_GetAt1(t, db, treeRoot, vt, xat, keys)
}) })
} }
}) })
......
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