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

.

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