Commit 26ea1652 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f723afbf
...@@ -129,10 +129,11 @@ class tDB: ...@@ -129,10 +129,11 @@ class tDB:
t._wc_zheadfh = open(t.wc.mountpoint + "/.wcfs/zhead") t._wc_zheadfh = open(t.wc.mountpoint + "/.wcfs/zhead")
t._wc_zheadv = [] t._wc_zheadv = []
@func
def close(t): def close(t):
t._wc_zheadfh.close() defer(lambda: dbclose(t.root))
t.wc.close() defer(t.wc.close)
dbclose(t.root) defer(t._wc_zheadfh.close)
# commit commits transaction and remembers/returns committed transaction ID. # commit commits transaction and remembers/returns committed transaction ID.
def commit(t): def commit(t):
......
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