mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
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
Block a user