[Zope3-checkins] CVS: ZODB4/ZODB - DB.py:1.59

Jeremy Hylton jeremy@zope.com
Fri, 13 Dec 2002 17:14:48 -0500


Update of /cvs-repository/ZODB4/ZODB
In directory cvs.zope.org:/tmp/cvs-serv28252/ZODB

Modified Files:
	DB.py 
Log Message:
Fix ref that should be to inst var, not local.
Remove refs to deleted inst var _version_cache_size.
Remove unused arg from cacheFullSweep() and cacheMinimize().


=== ZODB4/ZODB/DB.py 1.58 => 1.59 ===
--- ZODB4/ZODB/DB.py:1.58	Fri Dec  6 11:51:59 2002
+++ ZODB4/ZODB/DB.py	Fri Dec 13 17:14:48 2002
@@ -104,7 +104,7 @@
 
             # XXX I don't understand what this code is trying to do
             if self._temps:
-                for cc in temps:
+                for cc in self._temps:
                     if sys.getrefcount(cc) > 3:
                         f(cc)
                 self._temps = []
@@ -116,11 +116,11 @@
     # XXX I don't think the cache should be used via _cache.
     # Not sure that both full sweep and minimize need to stay.
 
-    def cacheFullSweep(self, value):
+    def cacheFullSweep(self):
         self._connectionMap(lambda c: c._cache.full_sweep())
 
-    def cacheMinimize(self, value):
-        self._connectionMap(lambda c, v=value: c._cache.minimize())
+    def cacheMinimize(self):
+        self._connectionMap(lambda c: c._cache.minimize())
 
     def close(self):
         self._storage.close()
@@ -228,8 +228,7 @@
                 # This is a temporary connection.
                 # We won't bother with the pools.  This will be
                 # a one-use connection.
-                c = Connection(self, version,
-                               cache_size=self._version_cache_size)
+                c = Connection(self, version, cache_size=self._cache_size)
                 self._temps.append(c)
                 if transaction is not None:
                     transaction[id(c)] = c