[Neo-report] r1871 vincent - /trunk/neo/master/transactions.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 26 17:39:59 CET 2010


Author: vincent
Date: Fri Feb 26 17:39:57 2010
New Revision: 1871

Log:
Relax TID checking on storage side.

Strangely, nothing in FileStorage forces a new transaction to start with a
TID higher than previous transaction. Supporting this is required for a
ZODB test to pass, so just do that - with a warning.

Modified:
    trunk/neo/master/transactions.py

Modified: trunk/neo/master/transactions.py
==============================================================================
--- trunk/neo/master/transactions.py [iso-8859-1] (original)
+++ trunk/neo/master/transactions.py [iso-8859-1] Fri Feb 26 17:39:57 2010
@@ -175,8 +175,8 @@
         """
         assert node is not None
         if tid is not None and tid < self._last_tid:
-            # supplied TID is in the past
-            raise protocol.ProtocolError('Invalid TID requested')
+            logging.warn('Transaction began with a decreased TID: %s, ' \
+                'expected at least %s', tid, self._last_tid)
         if tid is None:
             # give a TID
             tid = self._nextTID()





More information about the Neo-report mailing list