[Zodb-checkins] SVN: ZODB/branches/3.6/ fsrefs.py was reporting spurious 'missing' classes.

Tres Seaver tseaver at palladion.com
Thu Jul 27 17:55:22 EDT 2006


Log message for revision 69277:
  fsrefs.py was reporting spurious 'missing' classes.

Changed:
  U   ZODB/branches/3.6/NEWS.txt
  U   ZODB/branches/3.6/src/scripts/fsrefs.py

-=-
Modified: ZODB/branches/3.6/NEWS.txt
===================================================================
--- ZODB/branches/3.6/NEWS.txt	2006-07-27 21:49:47 UTC (rev 69276)
+++ ZODB/branches/3.6/NEWS.txt	2006-07-27 21:55:20 UTC (rev 69277)
@@ -153,6 +153,8 @@
 
 Tools
 -----
+- (3.6.3) Fixed bug in 'fsrefs.py' which caused it to report erroneous
+  "missing" classes.
 
 - (3.6b5) The changeover from zLOG to the logging module means that some
   tools need to perform minimal logging configuration themselves. Changed

Modified: ZODB/branches/3.6/src/scripts/fsrefs.py
===================================================================
--- ZODB/branches/3.6/src/scripts/fsrefs.py	2006-07-27 21:49:47 UTC (rev 69276)
+++ ZODB/branches/3.6/src/scripts/fsrefs.py	2006-07-27 21:55:20 UTC (rev 69277)
@@ -129,11 +129,8 @@
         data, serial = fs.load(oid, "")
         refs = get_refs(data)
         missing = [] # contains 3-tuples of oid, klass-metadata, reason
-        for info in refs:
-            ref, klass = info
+        for ref, klass in refs:
             if klass is None:
-                # failed to unpack
-                ref = info
                 klass = '<unknown>'
             if ref not in fs._index:
                 missing.append((ref, klass, "missing"))



More information about the Zodb-checkins mailing list