Commit d962ce87 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c6ee97d7
...@@ -497,6 +497,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, ...@@ -497,6 +497,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
var kadjTracked SetKey = nil var kadjTracked SetKey = nil
var δT map[Key]string = nil var δT map[Key]string = nil
// badf queues error message to be reported on return.
var badv []string var badv []string
badf := func(format string, argv ...interface{}) { badf := func(format string, argv ...interface{}) {
badv = append(badv, fmt.Sprintf(format, argv...)) badv = append(badv, fmt.Sprintf(format, argv...))
...@@ -566,7 +567,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, ...@@ -566,7 +567,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
} }
} }
// δbtail <- δZ // δB <- δZ
δB := δbtail.Update(δZ) δB := δbtail.Update(δZ)
if δB.Rev != δZ.Tid { if δB.Rev != δZ.Tid {
badf("δB: rev != δZ.Tid ; rev=%s δZ.Tid=%s", δB.Rev, δZ.Tid) badf("δB: rev != δZ.Tid ; rev=%s δZ.Tid=%s", δB.Rev, δZ.Tid)
...@@ -590,6 +591,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, ...@@ -590,6 +591,7 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
} }
// δT <- δB
δToid := δB.ByRoot[treeRoot] // {} k -> oid δToid := δB.ByRoot[treeRoot] // {} k -> oid
δT = XGetKV(db, at2, δToid) // {} k -> ZBlk(oid).data δT = XGetKV(db, at2, δToid) // {} k -> ZBlk(oid).data
......
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