[Zodb-checkins] CVS: ZODB3/bsddb3Storage/bsddb3Storage - Full.py:1.44.2.4

Barry Warsaw barry@wooz.org
Tue, 22 Oct 2002 19:17:49 -0400


Update of /cvs-repository/ZODB3/bsddb3Storage/bsddb3Storage
In directory cvs.zope.org:/tmp/cvs-serv22553

Modified Files:
      Tag: bdb-nolocks
	Full.py 
Log Message:
Get rid of the debugging transaction ids, and an unused import.


=== ZODB3/bsddb3Storage/bsddb3Storage/Full.py 1.44.2.3 => 1.44.2.4 ===
--- ZODB3/bsddb3Storage/bsddb3Storage/Full.py:1.44.2.3	Tue Oct 22 19:05:40 2002
+++ ZODB3/bsddb3Storage/bsddb3Storage/Full.py	Tue Oct 22 19:17:49 2002
@@ -40,7 +40,6 @@
 # ZODB.BaseStorage.BaseStorage which itself provides some common storage
 # functionality.
 from BerkeleyBase import BerkeleyBase
-from CommitLog import FullLog
 
 # Flags for transaction status in the transaction metadata table.  You can
 # only undo back to the last pack, and any transactions before the pack time
@@ -240,7 +239,7 @@
         self._oidqueue.open(self._prefix + 'oidqueue',
                             db.DB_QUEUE, db.DB_CREATE)
         # DEBUGGING
-        self._nextserial = 0L
+        #self._nextserial = 0L
         # END DEBUGGING
         # Do recovery and consistency checks
         self._withlock(self._dorecovery)
@@ -459,8 +458,8 @@
 
     def _begin(self, tid, u, d, e):
         # DEBUGGING
-        self._nextserial += 1
-        self._serial = p64(self._nextserial)
+        #self._nextserial += 1
+        #self._serial = p64(self._nextserial)
         # END DEBUGGING
         self._withtxn(self._dobegin, self._serial, u, d, e)
 
@@ -1180,7 +1179,9 @@
     # although the implementation attempts to mitigate both in-core memory
     # usage and blocking other, non-packing operations.
     #
-    # Autopack is a more lightweight operation. XXX
+    # Autopack is a more lightweight operation.  It only removes non-current
+    # revisions in a window of transactions, and doesn't do a root
+    # reachability test.
     #
 
     def _mark(self, txn):