[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/FileStorage/fsoids.py _check_drec(): Made oid2name logic more obvious.

Tim Peters tim.one at comcast.net
Sat Aug 21 04:11:05 EDT 2004


Log message for revision 27208:
  _check_drec():  Made oid2name logic more obvious.
  


Changed:
  U   ZODB/trunk/src/ZODB/FileStorage/fsoids.py


-=-
Modified: ZODB/trunk/src/ZODB/FileStorage/fsoids.py
===================================================================
--- ZODB/trunk/src/ZODB/FileStorage/fsoids.py	2004-08-21 02:54:26 UTC (rev 27207)
+++ ZODB/trunk/src/ZODB/FileStorage/fsoids.py	2004-08-21 08:11:04 UTC (rev 27208)
@@ -153,6 +153,7 @@
                           "at", drec.pos)
                 result = True
                 self.oids[oid] += 1
+                self.oid2name[oid] = oidclass
 
             for ref, klass in get_refs(pick):
                 if klass is None:
@@ -172,9 +173,6 @@
                               "at", pos)
                     result = True
 
-            if oidclass is not None:
-                self.oid2name[oid] = oidclass
-
         elif oid in self.oids:
             # Or maybe it's a version abort.
             self._msg(oid, tid, "creation undo at", pos)



More information about the Zodb-checkins mailing list