[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/simul.py Merge rev 37574 from 3.4 branch.

Tim Peters tim.one at comcast.net
Fri Jul 29 17:38:10 EDT 2005


Log message for revision 37575:
  Merge rev 37574 from 3.4 branch.
  
  makeroom():  Simplify retrieve+del from filemap.
  

Changed:
  U   ZODB/trunk/src/ZEO/simul.py

-=-
Modified: ZODB/trunk/src/ZEO/simul.py
===================================================================
--- ZODB/trunk/src/ZEO/simul.py	2005-07-29 21:37:13 UTC (rev 37574)
+++ ZODB/trunk/src/ZEO/simul.py	2005-07-29 21:38:10 UTC (rev 37575)
@@ -472,12 +472,7 @@
         pos = self.offset
         while need > 0:
             assert pos < self.cachelimit
-            try:
-                size, e = self.filemap[pos]
-            except KeyError:
-                self.dump()
-                raise
-            del self.filemap[pos]
+            size, e = self.filemap.pop(pos)
             if e:   # there is an object here (else it's already free space)
                 self.evicts += 1
                 self.total_evicts += 1



More information about the Zodb-checkins mailing list