1. Matt Chaput
  2. whoosh


Matt Chaput  committed f3b3ab4

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

  • Participants
  • Parent commits 5c67a75
  • Branches default

Comments (0)

Files changed (1)

File src/whoosh/writing.py

View file
  • Ignore whitespace
         clean_files(self.storage, self.indexname, self.generation, segments)
     def _finish(self):
+        self._tempstorage.destroy()
         if self.writelock:
-        self._tempstorage.destroy()
         self.is_closed = True