[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/cache.py Close input file nefore renaming or removing it.
Jim Fulton
jim at zope.com
Mon Jul 12 18:01:52 EDT 2010
Log message for revision 114662:
Close input file nefore renaming or removing it.
Changed:
U ZODB/trunk/src/ZEO/cache.py
-=-
Modified: ZODB/trunk/src/ZEO/cache.py
===================================================================
--- ZODB/trunk/src/ZEO/cache.py 2010-07-12 22:01:10 UTC (rev 114661)
+++ ZODB/trunk/src/ZEO/cache.py 2010-07-12 22:01:52 UTC (rev 114662)
@@ -210,6 +210,7 @@
try:
self._initfile(fsize)
except:
+ self.f.close()
if not path:
raise # unrecoverable temp file error :(
badpath = path+'.bad'
More information about the Zodb-checkins
mailing list