[Neo-report] r2038 vincent - /trunk/neo/client/app.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 28 17:05:07 CEST 2010
Author: vincent
Date: Wed Apr 28 17:05:05 2010
New Revision: 2038
Log:
Raise an exception when starting a transaction with unclean local_var.
Modified:
trunk/neo/client/app.py
Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Wed Apr 28 17:05:05 2010
@@ -545,6 +545,8 @@
if self.local_var.txn is transaction:
# We already begin the same transaction
return
+ if self.local_var.txn is not None:
+ raise NeoException, 'local_var is not clean in tpc_begin'
# ask the primary master to start a transaction, if no tid is supplied,
# the master will supply us one. Otherwise the requested tid will be
# used if possible.
More information about the Neo-report
mailing list