Commits

Matt Chaput committed 32512f9

Revert changes to read lock blocking.

  • Participants
  • Parent commits eac6a1c

Comments (0)

Files changed (1)

File src/whoosh/filedb/fileindex.py

         lock = self.lock("READLOCK")
         
         # Try to acquire the "reader" lock, which prevents a writer from
-        # deleting segments out from under us. If another reader already has
-        # the lock, just pray.
+        # deleting segments out from under us.
         #
         # TODO: replace this with a re-entrant file lock, if possible.
         gotit = False
         try:
-            gotit = lock.acquire(False)
+            gotit = lock.acquire(True)
         except:
             pass