Displaying 1 result from an estimated 1 matches for "reopen_index".
2006 Jun 30
4
Substantial problems with write locking (and other flux)
...ike this just deadlocks retrying endlessly:
begin
@ferret_index << doc
@ferret_index.flush()
@ferret_index.close()
rescue Exception => e # No, he couldn''t define a proper class for this
if e.to_s.include?(''Could not obtain write lock'')
reopen_index # opens the index again!
retry
else
raise e
end
end
How are we supposed to handle concurrency with a file store? I can''t
find anything in the wiki and actually I am getting very frustrated.
It''s the third gem update of Ferret and my plugin just got broken...