[Zope3-checkins] CVS: ZODB4/ZODB - FileStorage.py:1.110.6.6
Jeremy Hylton
jeremy@zope.com
Wed, 11 Dec 2002 15:28:54 -0500
Update of /cvs-repository/ZODB4/ZODB
In directory cvs.zope.org:/tmp/cvs-serv23429
Modified Files:
Tag: ZODB4-Q-branch
FileStorage.py
Log Message:
Make sure we delete the index if we delete the actual fs.
=== ZODB4/ZODB/FileStorage.py 1.110.6.5 => 1.110.6.6 ===
--- ZODB4/ZODB/FileStorage.py:1.110.6.5 Wed Dec 11 14:55:11 2002
+++ ZODB4/ZODB/FileStorage.py Wed Dec 11 15:28:53 2002
@@ -341,6 +341,10 @@
if self._file is None and create:
if os.path.exists(file_name):
os.remove(file_name)
+ try:
+ os.remove(file_name + ".index")
+ except os.error:
+ pass
self._file = open(file_name, 'w+b')
self._file.write(packed_version)