[Zodb-checkins] CVS: StandaloneZODB/bsddb3Storage/bsddb3Storage - Full.py:1.32
Barry Warsaw
barry@wooz.org
Wed, 24 Oct 2001 18:18:12 -0400
Update of /cvs-repository/StandaloneZODB/bsddb3Storage/bsddb3Storage
In directory cvs.zope.org:/tmp/cvs-serv26435
Modified Files:
Full.py
Log Message:
getSerial(): A more efficient implementation of this new API method
than what BaseStorage provides.
=== StandaloneZODB/bsddb3Storage/bsddb3Storage/Full.py 1.31 => 1.32 ===
return self._loadSerialEx(oid, serial)[0]
+ def getSerial(self, oid):
+ # Return the revision id for the current revision of this object,
+ # irrespective of any versions.
+ self._lock_acquire()
+ try:
+ return self._serials[oid]
+ finally:
+ self._lock_release()
+
def __findcreatevid(self, version):
# Get the vid associated with a version string, or create one if there
# is no vid for the version.