Commit c5c67e47 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 23568fce
......@@ -320,6 +320,9 @@ func XGetTree(db *zodb.DB, at zodb.Tid, root zodb.Oid) RBucketSet {
xwalkDFS(ctx, -kInf, kInf, ztree, func(rb *RBucket) {
rbucketv = append(rbucketv, rb)
})
if len(rbucketv) == 0 { // empty tree -> [-∞, ∞){}
rbucketv = RBucketSet{&RBucket{-kInf, kInf, map[Key]string{}}}
}
return rbucketv
}
......
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