Commit 8a14e5c7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4c6bd292
...@@ -194,7 +194,8 @@ func (n *nodeInRange) NodePath() []Node { ...@@ -194,7 +194,8 @@ func (n *nodeInRange) NodePath() []Node {
} }
*/ */
func (n *nodeInRange) Path() []zodb.Oid { func (n *nodeInRange) Path() []zodb.Oid {
return append(n.prefix, n.node.POid()) // return full copy - else .prefix can become aliased in between children of a node
return append([]zodb.Oid{}, append(n.prefix, n.node.POid())...)
} }
// rangeSplit represents set of nodes covering a range. // rangeSplit represents set of nodes covering a range.
...@@ -986,7 +987,7 @@ func xidOf(obj zodb.IPersistent) string { ...@@ -986,7 +987,7 @@ func xidOf(obj zodb.IPersistent) string {
return xid.String() return xid.String()
} }
func (rn nodeInRange) String() string { func (rn *nodeInRange) String() string {
done := " "; if rn.done { done = "*" } done := " "; if rn.done { done = "*" }
hi := rn.hi_ hi := rn.hi_
if hi < KeyMax { if hi < KeyMax {
......
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