FIX: Be more aggressive in checking master when trying to fallback.
This commit is contained in:
parent
4d75535f9e
commit
2adae2a0b6
|
@ -33,7 +33,7 @@ class PostgreSQLFallbackHandler
|
|||
thread = Thread.new { initiate_fallback_to_master }
|
||||
thread.join
|
||||
break if synchronize { @masters_down.hash.empty? }
|
||||
sleep 10
|
||||
sleep 5
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class DiscourseRedis
|
|||
thread = Thread.new { initiate_fallback_to_master }
|
||||
thread.join
|
||||
break if synchronize { @master }
|
||||
sleep 10
|
||||
sleep 5
|
||||
ensure
|
||||
thread.kill
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue