Commit fdcd011f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b0e11199
...@@ -398,7 +398,11 @@ func (S RangedKeySet) String() string { ...@@ -398,7 +398,11 @@ func (S RangedKeySet) String() string {
} }
func (r KeyRange) String() string { func (r KeyRange) String() string {
return fmt.Sprintf("[%s,%s)", keyStr(slo), keyStr(shi)) hi := r.hi_
if hi < KeyMax {
hi += 1
}
return fmt.Sprintf("[%s,%s)", keyStr(r.lo), keyStr(hi))
} }
......
...@@ -988,7 +988,11 @@ func xidOf(obj zodb.IPersistent) string { ...@@ -988,7 +988,11 @@ func xidOf(obj zodb.IPersistent) string {
func (rn nodeInRange) String() string { func (rn nodeInRange) String() string {
done := " "; if rn.done { done = "*" } done := " "; if rn.done { done = "*" }
return fmt.Sprintf("%s[%s,%s)%s", done, keyStr(slo), keyStr(shi), vnode(rn.node)) hi := rn.hi_
if hi < KeyMax {
hi += 1
}
return fmt.Sprintf("%s[%s,%s)%s", done, keyStr(rn.lo), keyStr(hi), vnode(rn.node))
} }
// push pushes element to node stack. // push pushes element to node stack.
......
...@@ -1995,7 +1995,11 @@ func sortedKeys(kv map[Key]Δstring) []Key { ...@@ -1995,7 +1995,11 @@ func sortedKeys(kv map[Key]Δstring) []Key {
func (b *RBucket) String() string { func (b *RBucket) String() string {
// XXX dup wrt nodeInRange.String // XXX dup wrt nodeInRange.String
return fmt.Sprintf("[%s,%s)B%s{%s}", keyStr(slo), keyStr(shi), b.oid, kvtxt(b.kv)) hi := b.hi_
if hi < KeyMax {
hi += 1
}
return fmt.Sprintf("[%s,%s)B%s{%s}", keyStr(b.lo), keyStr(hi), b.oid, kvtxt(b.kv))
} }
......
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