[Zodb-checkins] CVS: Packages/bsddb3Storage - BerkeleyBase.py:1.5
barry@digicool.com
barry@digicool.com
Fri, 13 Apr 2001 15:18:18 -0400 (EDT)
Update of /cvs-repository/Packages/bsddb3Storage
In directory korak:/tmp/cvs-serv15976
Modified Files:
BerkeleyBase.py
Log Message:
_vote(): Actually, this behavior is shared by both Full and Minimal
storages, so it makes sense to move it from there to the base
class. _vote() now puts the CommitLog into the promised() state.
--- Updated File BerkeleyBase.py in package Packages/bsddb3Storage --
--- BerkeleyBase.py 2001/04/13 19:15:46 1.4
+++ BerkeleyBase.py 2001/04/13 19:18:16 1.5
@@ -148,6 +148,11 @@
# TBD: this is expensive to calculate and many not be necessary.
return 0
+ def _vote(self):
+ # Make a promise to commit all the registered changes. Rewind and put
+ # our commit log in the PROMISED state.
+ self._commitlog.promise()
+
def _finish(self, tid, user, desc, ext):
"""Called from BaseStorage.tpc_finish(), this commits the underlying
BSDDB transaction.