Commit ff4323c2 authored by Julien Muchembled's avatar Julien Muchembled

client: fix "snapshot-less" use of Storage

It was broken since commit 4a4d2e64
("client: optimize by not calling lastTransaction at the end of transactions").

This fixes several unit tests like

git-svn-id: 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 439a4e36
......@@ -128,7 +128,8 @@ class Storage(BaseStorage.BaseStorage,
def tpc_finish(self, transaction, f=None):
tid =,
tryToResolveConflict=self.tryToResolveConflict, f=f)
self._snapshot_tid = add64(tid, 1)
if self._snapshot_tid:
self._snapshot_tid = add64(tid, 1)
return tid
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