Skip to content
Snippets Groups Projects
Commit 29bfa964 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

transaction: only generate file when we actually close the transaction

Before this change, the file were written for every call to `tr.close()`
exposing data to reader far too early.
parent 16da812a
No related branches found
No related tags found
No related merge requests found
......@@ -266,5 +266,4 @@
@active
def close(self):
'''commit the transaction'''
self._generatefiles()
if self.count == 1 and self.onclose is not None:
......@@ -270,4 +269,5 @@
if self.count == 1 and self.onclose is not None:
self._generatefiles()
self.onclose()
self.count -= 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment