[Zodb-checkins] CVS: Packages/bsddb3Storage - Full.py:1.23

barry@digicool.com barry@digicool.com
Sat, 28 Apr 2001 01:50:27 -0400 (EDT)


Update of /cvs-repository/Packages/bsddb3Storage/bsddb3Storage
In directory korak:/tmp/cvs-serv26351

Modified Files:
	Full.py 
Log Message:
pack(): Do not pack away object 0 since it's the root object.  We do
this by not adding oid == ZERO to the set of oids to process.



--- Updated File Full.py in package Packages/bsddb3Storage --
--- Full.py	2001/04/27 23:28:41	1.22
+++ Full.py	2001/04/28 05:50:26	1.23
@@ -976,8 +976,9 @@
                     self._txnMetadata[tid] = PROTECTED_TRANSACTION + meta[1:]
                     tidmarks[tid] = 1
                 # For now, just remember which objects are touched by the
-                # packable 
-                oids[oid] = 1
+                # packable
+                if oid <> ZERO:
+                    oids[oid] = 1
             # Now look at every object revision metadata record for the
             # objects that have been touched in the packable transactions.  If
             # the metadata record points at the current revision of the



--- Updated File Full.py in package Packages/bsddb3Storage --
--- Full.py	2001/04/27 23:28:41	1.22
+++ Full.py	2001/04/28 05:50:26	1.23
@@ -976,8 +976,9 @@
                     self._txnMetadata[tid] = PROTECTED_TRANSACTION + meta[1:]
                     tidmarks[tid] = 1
                 # For now, just remember which objects are touched by the
-                # packable 
-                oids[oid] = 1
+                # packable
+                if oid <> ZERO:
+                    oids[oid] = 1
             # Now look at every object revision metadata record for the
             # objects that have been touched in the packable transactions.  If
             # the metadata record points at the current revision of the