Commit 958d0e36 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1d81a9a0
......@@ -33,6 +33,7 @@ import (
"lab.nexedi.com/kirr/go123/exc"
"lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/neo/go/transaction"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/zodb/btree"
)
......@@ -160,8 +161,8 @@ func XGetTree(zurl string, at zodb.Tid, root zodb.Oid) map[int64]string {
db := zodb.NewDB(zstor)
defer db.Close() // XXX err
// XXX +transaction
// XXX +defer txn.Abort()
txn, ctx := transaction.New(ctx)
defer txn.Abort()
zconn, err := db.Open(ctx, &zodb.ConnOptions{At: at}); X(err)
xztree, err := zconn.Get(ctx, root); X(err)
......
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