# File lib/ferret/index.rb, line 5 5: def synchrolock 6: trys = 5 7: begin 8: synchronize {yield} 9: rescue Ferret::Store::Lock::LockError => e 10: if (trys -= 1) <= 0 11: raise e 12: else 13: retry 14: end 15: end 16: end