Commit 17bd832f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1c21d16e
...@@ -127,9 +127,9 @@ func (S PPTreeSubSet) AddNodePath(path []Node) { // XXX Tree|Bucket; path[0] = r ...@@ -127,9 +127,9 @@ func (S PPTreeSubSet) AddNodePath(path []Node) { // XXX Tree|Bucket; path[0] = r
// XXX assert Tree Tree ... Tree Bucket // XXX assert Tree Tree ... Tree Bucket
// root := path[0].(*Tree).POid() // root := path[0].(*Tree).POid()
oidv := []zodb.Oid{} oidv := make([]zodb.Oid, len(path))
for _, node := range path { for i, node := range path {
oidv = append(oidv, node.POid()) oidv[i] = node.POid()
} }
S.AddPath(oidv) S.AddPath(oidv)
} }
...@@ -296,7 +296,7 @@ func (S PPTreeSubSet) gc1(oid zodb.Oid) { ...@@ -296,7 +296,7 @@ func (S PPTreeSubSet) gc1(oid zodb.Oid) {
// verify checks internal consistency of S. // verify checks internal consistency of S.
func (S PPTreeSubSet) verify() { func (S PPTreeSubSet) verify() {
// XXX !debug -> return // XXX !debug -> return ?
var badv []string var badv []string
badf := func(format string, argv ...interface{}) { badf := func(format string, argv ...interface{}) {
......
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