Commit 98f186f7 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Abort Transaction must be sent to a primary master node as well.

git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@180 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 24aff108
......@@ -556,6 +556,14 @@ class Application(object):
aborted_node_set.add(cell.getNode())
# Abort the transaction in the primary master node.
conn = self.master_conn
conn.lock()
try:
conn.addPacket(Packet.abortTransaction(conn.getNextId(), self.tid))
finally:
conn.unlock()
self._clear_txn()
def tpc_finish(self, transaction, f=None):
......
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