Commit 1c21d16e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d4848186
...@@ -45,6 +45,8 @@ const debugPPSet = false ...@@ -45,6 +45,8 @@ const debugPPSet = false
// returns path to tree node given node oid. // returns path to tree node given node oid.
// //
// Every node in the set comes with .parent pointer. // Every node in the set comes with .parent pointer.
//
// XXX we only allow single parent/root case and report "tree corrupt" otherwise.
type PPTreeSubSet map[zodb.Oid]*nodeInTree type PPTreeSubSet map[zodb.Oid]*nodeInTree
// nodeInTree represents tracking information about a node. // nodeInTree represents tracking information about a node.
...@@ -352,8 +354,8 @@ func (orig PPTreeSubSet) Clone() PPTreeSubSet { ...@@ -352,8 +354,8 @@ func (orig PPTreeSubSet) Clone() PPTreeSubSet {
return klon return klon
} }
// equal returns whether a == b. // Equal returns whether a == b.
func (A PPTreeSubSet) equal(B PPTreeSubSet) bool { func (A PPTreeSubSet) Equal(B PPTreeSubSet) bool {
if len(A) != len(B) { if len(A) != len(B) {
return false return false
} }
......
This diff is collapsed.
This diff is collapsed.
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