Commit 6ffc9a52 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 26ea1652
...@@ -129,11 +129,10 @@ class tDB: ...@@ -129,11 +129,10 @@ 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):
defer(lambda: dbclose(t.root)) t._wc_zheadfh.close()
defer(t.wc.close) t.wc.close()
defer(t._wc_zheadfh.close) dbclose(t.root)
# 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