[ZEO-Checkins] CVS: Packages/ZEO - ClientStorage.py:1.29
jeremy at digicool.com
jeremy at digicool.com
Sun Apr 29 13:08:25 EDT 2001
Update of /cvs-repository/Packages/ZEO
In directory korak:/tmp/cvs-serv15752
Modified Files:
ClientStorage.py
Log Message:
Treat tpc_vote() as a noop if the transaction arg isn't the current
transaction.
--- Updated File ClientStorage.py in package Packages/ZEO --
--- ClientStorage.py 2001/04/27 17:29:59 1.28
+++ ClientStorage.py 2001/04/29 17:08:23 1.29
@@ -402,10 +402,10 @@
finally: self._lock_release()
def tpc_vote(self, transaction):
- if transaction is not self._transaction:
- raise POSException.StorageTransactionError(self, transaction)
self._lock_acquire()
try:
+ if transaction is not self._transaction:
+ return
self._call('vote', self._serial)
if self._serials:
--- Updated File ClientStorage.py in package Packages/ZEO --
--- ClientStorage.py 2001/04/27 17:29:59 1.28
+++ ClientStorage.py 2001/04/29 17:08:23 1.29
@@ -402,10 +402,10 @@
finally: self._lock_release()
def tpc_vote(self, transaction):
- if transaction is not self._transaction:
- raise POSException.StorageTransactionError(self, transaction)
self._lock_acquire()
try:
+ if transaction is not self._transaction:
+ return
self._call('vote', self._serial)
if self._serials:
More information about the ZEO-Checkins
mailing list