[Zodb-checkins] CVS: Zope3/src/zodb/storage - mapping.py:1.7
Barry Warsaw
barry@wooz.org
Mon, 17 Mar 2003 15:24:37 -0500
Update of /cvs-repository/Zope3/src/zodb/storage
In directory cvs.zope.org:/tmp/cvs-serv24475
Modified Files:
mapping.py
Log Message:
pack(): Add the optional gc flag, which MappingStorage ignores.
=== Zope3/src/zodb/storage/mapping.py 1.6 => 1.7 ===
--- Zope3/src/zodb/storage/mapping.py:1.6 Thu Mar 13 16:32:28 2003
+++ Zope3/src/zodb/storage/mapping.py Mon Mar 17 15:24:36 2003
@@ -84,7 +84,19 @@
def lastTransaction(self):
return self._ltid
- def pack(self, t):
+ def pack(self, t, gc=True):
+ """Perform a pack on the storage.
+
+ There are two forms of packing: incremental and full gc. In an
+ incremental pack, only old object revisions are removed. In a full gc
+ pack, cyclic garbage detection and removal is also performed.
+
+ t is the pack time. All non-current object revisions older than t
+ will be removed in an incremental pack.
+
+ MappingStorage ignores the gc flag. Every pack does both incremental
+ and full gc packing.
+ """
self._lock_acquire()
try:
# Build an index of those objects reachable from the root.