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

.

parent 372fab58
......@@ -6,7 +6,7 @@ X=$(cd `dirname $0` && pwd)
# rebuild everything
if test -z "$qrun_loglevel"; then
make -C $X --no-print-directory
(cd $X && make)
fi
# respawn ourself under qemu-runlinux, if asked.
......
......@@ -933,10 +933,3 @@ func vnode(node Node) string {
}
return kind + node.POid().String()
}
const debug = false
func tracef(format string, argv ...interface{}) {
if debug {
fmt.Printf(format, argv...)
}
}
......@@ -4,6 +4,7 @@ package xbtree
import (
"fmt"
"math"
"lab.nexedi.com/kirr/neo/go/zodb"
......@@ -31,3 +32,13 @@ const VDEL = zodb.InvalidOid
type SetKey = set.SetI64
type SetOid = set.SetOid
const debug = true
func tracef(format string, argv ...interface{}) {
if debug {
fmt.Printf(format, argv...)
}
}
......@@ -397,7 +397,10 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) {
defer xerr.Contextf(&err, "ΔBtail update %s -> %s", headOld, δZ.Tid)
// update .trackSet and vδB from .trackNew
δBtail.rebuild()
err = δBtail.rebuild()
if err != nil {
return ΔB{}, err
}
tracef("Update @%s -> @%s\n", δBtail.Head(), δZ.Tid)
tracef("δZ:\t%v\n", δZ.Changev)
......
......@@ -880,7 +880,7 @@ retry:
return err
}
if !log.V(2) {
if log.V(2) {
// debug dump δF
log.Infof("\n\nS: handleδZ: δF (#%d):\n", len(δF.ByFile))
for zfile, δfile := range δF.ByFile {
......
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