[Zope3-checkins] CVS: Zope3/src/persistence - cache.py:1.11

Jeremy Hylton jeremy@zope.com
Mon, 30 Jun 2003 15:41:58 -0400


Update of /cvs-repository/Zope3/src/persistence
In directory cvs.zope.org:/tmp/cvs-serv21421

Modified Files:
	cache.py 
Log Message:
Fix bug that caused everything to be ghostified if the cache was full.

Whoops!


=== Zope3/src/persistence/cache.py 1.10 => 1.11 ===
--- Zope3/src/persistence/cache.py:1.10	Fri Jun  6 11:24:18 2003
+++ Zope3/src/persistence/cache.py	Mon Jun 30 15:41:58 2003
@@ -113,7 +113,7 @@
             n = na - self._size
             must_go = L[:n]
             L = L[n:]
-            for atime, oid, ob in L:
+            for atime, oid, ob in must_go:
                 self._ghostify(oid, ob)
 
         # ghostify old objects regardless of cache size