[Zope3-checkins] CVS: Zope3/src/zodb/storage - bdbfull.py:1.28
Barry Warsaw
barry@zope.com
Thu, 10 Jul 2003 13:36:17 -0400
Update of /cvs-repository/Zope3/src/zodb/storage
In directory cvs.zope.org:/tmp/cvs-serv26443
Modified Files:
bdbfull.py
Log Message:
Better coverage for lastTransaction() by moving the most common usage
into the BaseStorage class. Since this method is required by
IStorage, and most implementations do it the same way, it makes
sense.
lastTransaction(), _finish(): Refactor these to the base class.
=== Zope3/src/zodb/storage/bdbfull.py 1.27 => 1.28 ===
--- Zope3/src/zodb/storage/bdbfull.py:1.27 Wed Jul 2 16:21:35 2003
+++ Zope3/src/zodb/storage/bdbfull.py Thu Jul 10 13:36:12 2003
@@ -471,10 +471,6 @@
def _begin(self, tid):
self._withtxn(self._dobegin, self._serial)
- def _finish(self, tid):
- self._withtxn(self._docommit, self._serial)
- self._ltid = tid
-
#
# Storing an object revision in a transaction
#
@@ -1062,10 +1058,6 @@
def _last_packtime(self):
return self._info.get('packtime', ZERO)
-
- def lastTransaction(self):
- """Return transaction id for last committed transaction"""
- return self._ltid
def lastSerial(self, oid):
"""Return last serialno committed for object oid.