Commit d4853cc9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8f4b1740
......@@ -125,7 +125,7 @@ func (tg *TreeGen) Close() (err error) {
return xerr.Merge(err1, err2, err3)
}
// Commit creates new commit with underlying tree changed to tree topology.
// Commit creates new commit with underlying tree changed to specified tree topology.
func (tg *TreeGen) Commit(tree string) (_ zodb.Tid, err error) {
defer xerr.Contextf(&err, "treegen %s: commit %s", tg.zurl, tree)
......@@ -194,7 +194,7 @@ func XGetTree(db *zodb.DB, at zodb.Tid, root zodb.Oid) map[Key]string {
return kv
}
// XGetKV translates {k -> <oid>} to {k -> ZBlk(oid).data} according to db@at.
// XGetKV translates {k -> <oid>} to {k -> ZBlk(oid).data} according to db@at snapshot.
func XGetKV(db *zodb.DB, at zodb.Tid, kvOid map[Key]Value) map[Key]string {
defer exc.Contextf("%s: @%s: get kv %v", db.Storage().URL(), at, kvOid)
X := exc.Raiseif
......@@ -242,13 +242,13 @@ func xverifyΔBTail(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, a
keys.Add(allKeyv[idx])
}
xverifyΔBTail1(t, subj, db, treeRoot, at1,at2, kv1,kv2, d12, δZ, keys)
xverifyΔBTail1(t, subj, db, treeRoot, at1,at2, d12, δZ, keys)
}
}
// xverifyΔBTail1 verifies how ΔBTail handles ZODB update at1->at2 from initial
// tracked state defined by initialTrackedKeys.
func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, at1,at2 zodb.Tid, kv1,kv2, d12 map[Key]string, δZ *zodb.EventCommit, initialTrackedKeys SetKey) {
func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, at1,at2 zodb.Tid, d12 map[Key]string, δZ *zodb.EventCommit, initialTrackedKeys SetKey) {
X := exc.Raiseif
assert := require.New(t)
......
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