[Zodb-checkins] CVS: Packages/bsddb3Storage - BerkeleyBase.py:1.4
barry@digicool.com
barry@digicool.com
Fri, 13 Apr 2001 15:15:46 -0400 (EDT)
Update of /cvs-repository/Packages/bsddb3Storage
In directory korak:/tmp/cvs-serv15713
Modified Files:
BerkeleyBase.py
Log Message:
tpc_vote(), _vote(): Removed, the BaseStorage base class implements
the infrastructure.
--- Updated File BerkeleyBase.py in package Packages/bsddb3Storage --
--- BerkeleyBase.py 2001/04/03 18:41:01 1.3
+++ BerkeleyBase.py 2001/04/13 19:15:46 1.4
@@ -22,6 +22,7 @@
# BaseStorage provides primitives for lock acquisition and release,
# abortVersion(), commitVersion() and a host of other methods, some of which
# are overridden here, some of which are not.
+from ZODB import POSException
from ZODB.BaseStorage import BaseStorage
# $Revision$
@@ -146,21 +147,6 @@
"""Return the size of the database."""
# TBD: this is expensive to calculate and many not be necessary.
return 0
-
- def tpc_vote(self, transaction):
- # BAW: This wrapper framework should probably be in BaseStorage's
- # tpc_vote()
- if transaction is not self._transaction:
- raise POSException.StorageTransactionError(self, transaction)
-
- self._lock_acquire()
- try:
- self._vote(transaction)
- finally:
- self._lock_release()
-
- def _vote(self, transaction):
- pass
def _finish(self, tid, user, desc, ext):
"""Called from BaseStorage.tpc_finish(), this commits the underlying