Commit cdb9d214 authored by Jim Fulton's avatar Jim Fulton

We had abort and tpc_abort reversed. tpc_abort is called after a commit

and that's too late to actually abort. abort is called in a normal
abort and is caled before commit, so it's the one that really matters.
parent 8bac11a9
......@@ -108,7 +108,7 @@ class THUNKED_TM(TM.TM):
thunk_lock.release()
self._registered=0
def tpc_abort(self, *ignored):
def abort(self, *ignored):
try: self._abort()
finally:
thunk_lock.release()
......
......@@ -108,7 +108,7 @@ class TM:
except: pass
def tpc_begin(self, *ignored): pass
commit=abort=tpc_begin
commit=tpc_abort=tpc_begin
def _finish(self):
self.db.commit()
......@@ -121,7 +121,7 @@ class TM:
try: self._finish()
finally: self._registered=0
def tpc_abort(self, *ignored):
def abort(self, *ignored):
try: self._abort()
finally: self._registered=0
......
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