Commit d13726ba authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9e3f6bb6
......@@ -64,7 +64,6 @@ func NewPathSet() *PathSet {
// XXX catch cycles on add?
func (m *PathSet) Add(master interface{}, path []zodb.IPersistent) {
fmt.Printf("\n\nPathSet.Add %v %s\n", master, path)
panic("aaa")
l := len(path)
if l == 0 {
......
......@@ -510,14 +510,17 @@ func (bf *ZBigFile) Size(ctx context.Context) (_ int64, treePath []zodb.IPersist
}
defer bf.PDeactivate()
fmt.Printf("\n\n\nSize ...\n")
tailblk, ok, err := bf.blktab.VMaxKey(ctx, func(node zodb.IPersistent) {
fmt.Printf("visit %v\n", node)
treePath = append(treePath, node)
})
if err != nil {
fmt.Printf("end Size (%v)\n", treePath)
if err != nil{
return 0, nil, err
}
if !ok {
return 0, nil, nil
return 0, treePath, nil
}
size := (tailblk + 1) * bf.blksize
......
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