[Zodb-checkins] CVS: Zope3/src/zodb/storage/file - pack.py:1.1.2.4

Jeremy Hylton jeremy at zope.com
Thu Apr 17 19:50:57 EDT 2003


Update of /cvs-repository/Zope3/src/zodb/storage/file
In directory cvs.zope.org:/tmp/cvs-serv23481/file

Modified Files:
      Tag: jeremy-new-pack-branch
	pack.py 
Log Message:
Treat pnv backpointers in the future like regular backpointers.


=== Zope3/src/zodb/storage/file/pack.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zodb/storage/file/pack.py:1.1.2.3	Thu Apr 17 16:00:49 2003
+++ Zope3/src/zodb/storage/file/pack.py	Thu Apr 17 18:50:56 2003
@@ -107,11 +107,12 @@
                         L.append(dh.back)
                         extra_roots.append(dh.back)
 
-                if dh.pnv and dh.pnv < self.packpos:
-                    L = self.reachable.setdefault(dh.oid, [])
-                    if dh.pnv not in L:
-                        L.append(dh.pnv)
-                        extra_roots.append(dh.pnv)
+                if dh.version:
+                    if dh.pnv and dh.pnv < self.packpos:
+                        L = self.reachable.setdefault(dh.oid, [])
+                        if dh.pnv not in L:
+                            L.append(dh.pnv)
+                            extra_roots.append(dh.pnv)
                         
                 pos += dh.recordlen()
 




More information about the Zodb-checkins mailing list