[Zope3-checkins] CVS: Zope3/src/zodb/storage - base.py:1.26.2.2

Barry Warsaw barry@zope.com
Mon, 21 Apr 2003 15:45:37 -0400


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

Modified Files:
      Tag: jeremy-new-pack-branch
	base.py 
Log Message:
BerkeleyBase.__init__(): The oidqueue table now has differently sized
values depending on whether it's used for full or minimal storage.  In
full storage, the oidqueue must hold revids (16 bytes), but in the
minimal storage it holds just oids (8 bytes).  Therefore, let
subclasses initialize this table.

Also, the packmark table for full now can hold dups.  Since this flag
setting doesn't matter for minimal, always set this flag.


=== Zope3/src/zodb/storage/base.py 1.26.2.1 => 1.26.2.2 ===
--- Zope3/src/zodb/storage/base.py:1.26.2.1	Thu Apr 17 18:49:49 2003
+++ Zope3/src/zodb/storage/base.py	Mon Apr 21 15:45:37 2003
@@ -536,8 +536,7 @@
         self._references = self._setupDB('references')
         self._oids = self._setupDB('oids')
         self._pending = self._setupDB('pending')
-        self._packmark = self._setupDB('packmark')
-        self._oidqueue = self._setupDB('oidqueue', 0, db.DB_QUEUE, 8)
+        self._packmark = self._setupDB('packmark', db.DB_DUP)
         # Do storage specific initialization
         self._init()
         self._withtxn(self._version_check)