[Neo-report] r2819 jm - /trunk/neo/client/Storage.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Sep 3 21:49:28 CEST 2011
Author: jm
Date: Sat Sep 3 21:49:28 2011
New Revision: 2819
Log:
client: fix "snapshot-less" use of Storage
It was broken since commit 637d24ecd23e09daac365b7f4759e1cb49e5748a
("client: optimize by not calling lastTransaction at the end of transactions").
This fixes several unit tests like
neo.tests.zodb.testBasic.BasicTests.check_tid_ordering_w_commit
Modified:
trunk/neo/client/Storage.py
Modified: trunk/neo/client/Storage.py
==============================================================================
--- trunk/neo/client/Storage.py [iso-8859-1] (original)
+++ trunk/neo/client/Storage.py [iso-8859-1] Sat Sep 3 21:49:28 2011
@@ -128,7 +128,8 @@ class Storage(BaseStorage.BaseStorage,
def tpc_finish(self, transaction, f=None):
tid = self.app.tpc_finish(transaction=transaction,
tryToResolveConflict=self.tryToResolveConflict, f=f)
- self._snapshot_tid = add64(tid, 1)
+ if self._snapshot_tid:
+ self._snapshot_tid = add64(tid, 1)
return tid
@check_read_only
More information about the Neo-report
mailing list