[Zodb-checkins] CVS: ZODB3/ZODB - MappingStorage.py:1.9.40.3
Jeremy Hylton
cvs-admin at zope.org
Mon Nov 24 13:04:43 EST 2003
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv20568/ZODB
Modified Files:
Tag: ZODB3-mvcc-2-branch
MappingStorage.py
Log Message:
Separate pack tests into two categories.
The first category is the small handful of tests that can work against
a storage that doesn't keep revisions, MappingStorage or
BDBMinimalStorage. The second category is all the rest. Make sure
concrete test classes mixin one or both as needed.
=== ZODB3/ZODB/MappingStorage.py 1.9.40.2 => 1.9.40.3 ===
--- ZODB3/ZODB/MappingStorage.py:1.9.40.2 Thu Nov 20 16:01:10 2003
+++ ZODB3/ZODB/MappingStorage.py Mon Nov 24 13:04:12 2003
@@ -104,6 +104,8 @@
def pack(self, t, referencesf):
self._lock_acquire()
try:
+ if not self._index:
+ return
# Build an index of *only* those objects reachable from the root.
rootl = ['\0\0\0\0\0\0\0\0']
pindex = {}
More information about the Zodb-checkins
mailing list