[Zodb-checkins] CVS: ZODB3/BDBStorage - BDBMinimalStorage.py:1.27

Barry Warsaw barry@wooz.org
Tue, 21 Jan 2003 16:53:33 -0500


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

Modified Files:
	BDBMinimalStorage.py 
Log Message:
_docommit(): Backing out the previous refcounting hack.  There was no
bug here, there was a deficiency in zodb_pickle() that will be fixed
in StorageTestBase.py


=== ZODB3/BDBStorage/BDBMinimalStorage.py 1.26 => 1.27 ===
--- ZODB3/BDBStorage/BDBMinimalStorage.py:1.26	Tue Jan 21 14:26:22 2003
+++ ZODB3/BDBStorage/BDBMinimalStorage.py	Tue Jan 21 16:53:30 2003
@@ -177,13 +177,7 @@
                     soid, stid = srec
                     if soid <> oid:
                         break
-                    if stid == tid:
-                        # This is the current revision of the object, so
-                        # increment the refcounts of all referents
-                        data = self._pickles.get(oid+stid, txn=txn)
-                        assert data is not None
-                        self._update(deltas, data, 1)
-                    else:
+                    if stid <> tid:
                         # This is the previous revision of the object, so
                         # decref its referents and clean up its pickles.
                         cs.delete()