Commit 8eeef71a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7d2e4509
...@@ -1131,7 +1131,7 @@ func xverifyΔBTail_rebuild_TR(t *testing.T, db *zodb.DB, δbtail *ΔBtail, tj * ...@@ -1131,7 +1131,7 @@ func xverifyΔBTail_rebuild_TR(t *testing.T, db *zodb.DB, δbtail *ΔBtail, tj *
δbtail.rebuildAll() δbtail.rebuildAll()
subj += "+ rebuild" subj += " + rebuild"
δbtail.assertTrack(t, subj, trackSetAfterRebuild, ø) δbtail.assertTrack(t, subj, trackSetAfterRebuild, ø)
// XXX assert vδB=[δ1/T(keys)] // XXX assert vδB=[δ1/T(keys)]
...@@ -1147,8 +1147,8 @@ func assertΔTtail(t *testing.T, subj string, δbtail *ΔBtail, db *zodb.DB, tj ...@@ -1147,8 +1147,8 @@ func assertΔTtail(t *testing.T, subj string, δbtail *ΔBtail, db *zodb.DB, tj
// XXX +KVAtTail, +lastRevOf // XXX +KVAtTail, +lastRevOf
l := len(vδTok) l := len(vδTok)
vatOK := []zodb.Tid{} var vatOK []zodb.Tid
vδTok_ := []map[Key]Δstring{} var vδTok_ []map[Key]Δstring
t0 := tj t0 := tj
for i := 0; i<l; i++ { for i := 0; i<l; i++ {
// empty vδTok entries means they should be absent in vδT // empty vδTok entries means they should be absent in vδT
...@@ -1162,16 +1162,19 @@ func assertΔTtail(t *testing.T, subj string, δbtail *ΔBtail, db *zodb.DB, tj ...@@ -1162,16 +1162,19 @@ func assertΔTtail(t *testing.T, subj string, δbtail *ΔBtail, db *zodb.DB, tj
// lo := t0.at // lo := t0.at
// hi := tj.at // hi := tj.at
// vδToid := δbtail.SliceByRootRev(treeRoot, lo, hi) // vδToid := δbtail.SliceByRootRev(treeRoot, lo, hi)
δTtail := δbtail.vδTbyRoot[treeRoot] δTtail, ok := δbtail.vδTbyRoot[treeRoot]
vδToid := δTtail.vδT var vδToid []ΔTree
if ok {
vδToid = δTtail.vδT
}
l = len(vδToid) l = len(vδToid)
vat := make([]zodb.Tid, l) var vat []zodb.Tid
vδT := []map[Key]Δstring{} var vδT []map[Key]Δstring
// atPrev := lo // atPrev := lo
atPrev := t0.at atPrev := t0.at
for i, δToid := range vδToid { for _, δToid := range vδToid {
vat[i] = δToid.Rev vat = append(vat, δToid.Rev)
δT := XGetδKV(db, atPrev, δToid.Rev, δToid.ΔKV) // {} k -> δ(ZBlk(oid).data) δT := XGetδKV(db, atPrev, δToid.Rev, δToid.ΔKV) // {} k -> δ(ZBlk(oid).data)
vδT = append(vδT, δT) vδT = append(vδT, δT)
atPrev = δToid.Rev atPrev = δToid.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