[Zodb-checkins] CVS: ZODB3/BDBStorage - BDBFullStorage.py:1.71.2.3

Jeremy Hylton jeremy at zope.com
Fri Sep 12 16:31:46 EDT 2003


Update of /cvs-repository/ZODB3/BDBStorage
In directory cvs.zope.org:/tmp/cvs-serv27251

Modified Files:
      Tag: ZODB3-3_2-branch
	BDBFullStorage.py 
Log Message:
Explain why it is okay to ignore DBNotFoundError in the pickles table.

This still doesn't explain why catching the error and calling
txn.abort() will cause a DBRunRecoveryError.


=== ZODB3/BDBStorage/BDBFullStorage.py 1.71.2.2 => 1.71.2.3 ===
--- ZODB3/BDBStorage/BDBFullStorage.py:1.71.2.2	Fri Sep 12 15:44:35 2003
+++ ZODB3/BDBStorage/BDBFullStorage.py	Fri Sep 12 16:31:46 2003
@@ -337,6 +337,9 @@
                 revid = oid+tid
                 vid = self._metadata[revid][:8]
                 self._metadata.delete(revid, txn=txn)
+                # If the transaction performed an operation that did not
+                # write a new pickle, e.g. a version operation or undo,
+                # there will be metadate but no pickle.
                 try:
                     self._pickles.delete(revid, txn=txn)
                 except db.DBNotFoundError:




More information about the Zodb-checkins mailing list