Commit 0ca4ff38 authored by Vincent Pelletier's avatar Vincent Pelletier

Raise an exception when starting a transaction with unclean local_var.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2038 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c39c3478
......@@ -545,6 +545,8 @@ class Application(object):
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.
......
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