Commits

Matt Chaput committed f3b3ab4

Delete the temporary storage before releasing the lock, to prevent overlap.
Fixes issue #368. Thanks Daniel!

  • Participants
  • Parent commits 5c67a75

Comments (0)

Files changed (1)

src/whoosh/writing.py

         clean_files(self.storage, self.indexname, self.generation, segments)
 
     def _finish(self):
+        self._tempstorage.destroy()
         if self.writelock:
             self.writelock.release()
-        self._tempstorage.destroy()
         self.is_closed = True
         #self.storage.close()