Commit 5f43da72 authored by Jeremy Hylton's avatar Jeremy Hylton

When closing a storage connection, do the whole tpc_abort() dance.

The previous code just called tpc_abort() on the server, but that
wouldn't restart any waiting transaction.
parent 014e189c
......@@ -127,8 +127,7 @@ class ZEOStorage:
# When this storage closes, we must ensure that it aborts
# any pending transaction. Not sure if this is the clearest way.
if self._transaction is not None:
self.__storage.tpc_abort(self._transaction)
self._transaction = None
self.tpc_abort(self._transaction.id)
self._conn.close()
def notifyConnected(self, conn):
......
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