Commit 1ea04be7 authored by Julien Muchembled's avatar Julien Muchembled

client: notify master of aborted transaction only if already connected

This is enough because on disconnection, the master already aborts all
transactions on its side.
parent 2dcc079b
......@@ -707,7 +707,9 @@ class Application(object):
except:
logging.exception('Exception in tpc_abort while notifying'
'storage node %r of abortion, ignoring.', conn)
self._getMasterConnection().notify(p)
conn = self.master_conn
if conn is not None:
conn.notify(p)
# We don't need to flush queue, as it won't be reused by future
# transactions (deleted on next line & indexed by transaction object
# instance).
......
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