[Zope3-checkins] CVS: Zope3/lib/python/ZODB - FileStorage.py:1.114
Jeremy Hylton
jeremy@zope.com
Thu, 19 Dec 2002 10:39:59 -0500
Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv19613
Modified Files:
FileStorage.py
Log Message:
Must close the current file before moving it to .old.
=== Zope3/lib/python/ZODB/FileStorage.py 1.113 => 1.114 ===
--- Zope3/lib/python/ZODB/FileStorage.py:1.113 Mon Dec 16 16:18:39 2002
+++ Zope3/lib/python/ZODB/FileStorage.py Thu Dec 19 10:39:58 2002
@@ -1321,6 +1321,7 @@
return
opos, index, vindex, tindex, tvindex = t
oldpath = self._name + ".old"
+ self._file.close()
try:
if os.path.exists(oldpath):
os.remove(oldpath)