[Checkins] SVN: zc.zodbdgc/branches/dev/ Use a ZODB release, now that it has the deleted-record pack fix.

Jim Fulton jim at zope.com
Thu Jun 11 14:02:20 EDT 2009


Log message for revision 100883:
  Use a ZODB release, now that it has the deleted-record pack fix.
  

Changed:
  _U  zc.zodbdgc/branches/dev/
  U   zc.zodbdgc/branches/dev/buildout.cfg
  U   zc.zodbdgc/branches/dev/src/zc/zodbdgc/__init__.py

-=-

Property changes on: zc.zodbdgc/branches/dev
___________________________________________________________________
Modified: svn:externals
   - zodb svn+ssh://svn.zope.org/repos/main/ZODB/trunk

   + 


Modified: zc.zodbdgc/branches/dev/buildout.cfg
===================================================================
--- zc.zodbdgc/branches/dev/buildout.cfg	2009-06-11 17:57:50 UTC (rev 100882)
+++ zc.zodbdgc/branches/dev/buildout.cfg	2009-06-11 18:02:20 UTC (rev 100883)
@@ -1,5 +1,5 @@
 [buildout]
-develop = . zodb
+develop = .
 parts = test py
 
 [test]

Modified: zc.zodbdgc/branches/dev/src/zc/zodbdgc/__init__.py
===================================================================
--- zc.zodbdgc/branches/dev/src/zc/zodbdgc/__init__.py	2009-06-11 17:57:50 UTC (rev 100882)
+++ zc.zodbdgc/branches/dev/src/zc/zodbdgc/__init__.py	2009-06-11 18:02:20 UTC (rev 100883)
@@ -281,12 +281,12 @@
 
     fs = ZODB.FileStorage.FileStorage(refdb, create=True)
     conn = ZODB.connection(fs)
-    references = conn.root.references = {}
+    references = conn.root.references = BTrees.OOBTree.BTree()
     try:
         check_(config, references)
     finally:
         transaction.commit()
-        conn.close()
+        fs.close()
 
 def _insert_ref(references, rname, roid, name, oid):
     if references is None:
@@ -378,7 +378,7 @@
 
             nreferences += _insert_ref(references, name, oid, *ref)
 
-            if nreferences > 10000:
+            if nreferences > 400:
                 transaction.commit()
                 nreferences = 0
 



More information about the Checkins mailing list