Commit 05cb352f authored by Jim Fulton's avatar Jim Fulton

Made tpc_finish a bit more robust to failures in _finish.

Failures in _finish could cause the storage to hang because the
commit lock was not released.
parent 1f4f20eb
......@@ -84,7 +84,7 @@
##############################################################################
"""Handy standard storage machinery
"""
__version__='$Revision: 1.3 $'[11:-2]
__version__='$Revision: 1.4 $'[11:-2]
import time, bpthread
from POSException import UndoError
......@@ -195,12 +195,12 @@ class BaseStorage:
u,d,e=self._ude
self._finish(self._serial, u, d, e)
self._clear_temp()
finally:
self._ude=None
self._transaction=None
self._commit_lock_release()
finally: self._lock_release()
self._lock_release()
def _finish(self, tid, u, d, e):
pass
......
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