FIX: PostgreSQL fallback thread doesn't run server starts in readonly.

This commit is contained in:
Guo Xiang Tan 2018-06-11 15:22:59 +08:00
parent d06af14c26
commit c0b0c66a9e
1 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,10 @@ class PostgreSQLFallbackHandler
end
def initiate_fallback_to_master
return unless @initialized
unless @initialized
@initialized = true
return
end
@masters_down.hash.keys.each do |key|
RailsMultisite::ConnectionManagement.with_connection(key) do