Commit 6b1e072b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b29f0fbc
...@@ -242,6 +242,9 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) { ...@@ -242,6 +242,9 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) {
δBtail.δZtail.Append(δZ.Tid, δZ.Changev) δBtail.δZtail.Append(δZ.Tid, δZ.Changev)
fmt.Printf("\nUpdate δZ: %v\n", δZ.Changev)
fmt.Printf("trackIdx: %v\n", δBtail.trackIdx)
// {} root -> {oid} changed under that root in tracked set // {} root -> {oid} changed under that root in tracked set
δZByRoot := map[zodb.Oid]SetOid{} δZByRoot := map[zodb.Oid]SetOid{}
for _, oid := range δZ.Changev { for _, oid := range δZ.Changev {
...@@ -258,6 +261,7 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) { ...@@ -258,6 +261,7 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) {
δZT.Add(oid) δZT.Add(oid)
} }
} }
fmt.Println("δZByRoot:", δZByRoot)
δB := ΔB{Rev: δZ.Tid, ByRoot: make(map[zodb.Oid]map[Key]Value)} δB := ΔB{Rev: δZ.Tid, ByRoot: make(map[zodb.Oid]map[Key]Value)}
...@@ -319,6 +323,8 @@ func (δBtail *ΔBtail) treediff(ctx context.Context, root zodb.Oid, δZT SetOid ...@@ -319,6 +323,8 @@ func (δBtail *ΔBtail) treediff(ctx context.Context, root zodb.Oid, δZT SetOid
defer xerr.Contextf(&err, "treediff %s..%s %s", zconnOld.At(), zconnNew.At(), root) defer xerr.Contextf(&err, "treediff %s..%s %s", zconnOld.At(), zconnNew.At(), root)
// XXX zconnX -> a, b ? // XXX zconnX -> a, b ?
fmt.Printf("treediff %s δZT: %v\n", root, δZT)
δT = map[Key]Value{} δT = map[Key]Value{}
for oid := range δZT { for oid := range δZT {
......
...@@ -510,8 +510,8 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, ...@@ -510,8 +510,8 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
emsg += strings.Join(badv, "\n") emsg += strings.Join(badv, "\n")
emsg += "\n" emsg += "\n"
t.Error(emsg) //t.Error(emsg)
//t.Fatal(emsg) t.Fatal(emsg)
} }
}() }()
......
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