Commit 0e5cfcd7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9b5339ca
...@@ -203,15 +203,14 @@ func xverifyΔBTail(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1, at2 zodb. ...@@ -203,15 +203,14 @@ func xverifyΔBTail(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1, at2 zodb.
d12 := kvdiff(kv1, kv2) d12 := kvdiff(kv1, kv2)
fmt.Println("d12:", d12) fmt.Println("d12:", d12)
// verify transition at1->at2 for all initial states of tracked {keys} from kv1 // verify transition at1->at2 for all initial states of tracked {keys} from kv1 + ∞
keyv1 := []Key{} keyv1 := []Key{10000} // inf, simulating ZBigFile.Size() query
for k1 := range kv1 { for k1 := range kv1 {
keyv1 = append(keyv1, k1) keyv1 = append(keyv1, k1)
} }
sort.Slice(keyv1, func(i, j int) bool { sort.Slice(keyv1, func(i, j int) bool {
return keyv1[i] < keyv1[j] return keyv1[i] < keyv1[j]
}) })
keyv1 = append(keyv1, 10000) // inf, simulating ZBigFile.Size() query
for kidx := range IntSets(len(keyv1)) { for kidx := range IntSets(len(keyv1)) {
keys := make([]Key, len(kidx)) keys := make([]Key, len(kidx))
for i, idx := range kidx { for i, idx := range kidx {
......
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