[Zope-Checkins] CVS: Zope/lib/python/Products/Transience - Transience.py:1.29
Chris McDonough
chrism@zope.com
Tue, 22 Oct 2002 18:18:13 -0400
Update of /cvs-repository/Zope/lib/python/Products/Transience
In directory cvs.zope.org:/tmp/cvs-serv16011
Modified Files:
Transience.py
Log Message:
Fixed bug in _housekeep. Don't mutate a BTree while iterating over its keys!
=== Zope/lib/python/Products/Transience/Transience.py 1.28 => 1.29 ===
--- Zope/lib/python/Products/Transience/Transience.py:1.28 Wed Aug 14 18:25:13 2002
+++ Zope/lib/python/Products/Transience/Transience.py Tue Oct 22 18:18:13 2002
@@ -678,7 +678,7 @@
# iterate over the keys in data that have no minimum value and
# a maximum value of delete_end (note: ordered set)
# XXX- fixme. range search doesn't always work (btrees bug)
- for k in data.keys(None, delete_end):
+ for k in list(data.keys(None, delete_end)):
if k > delete_end:
DEBUG and TLOG(
'_housekeep: broken range search (key %s > max %s)'