FIX: PostgreSQL fallback thread doesn't run server starts in readonly.
This commit is contained in:
parent
d06af14c26
commit
c0b0c66a9e
|
@ -57,7 +57,10 @@ class PostgreSQLFallbackHandler
|
||||||
end
|
end
|
||||||
|
|
||||||
def initiate_fallback_to_master
|
def initiate_fallback_to_master
|
||||||
return unless @initialized
|
unless @initialized
|
||||||
|
@initialized = true
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
@masters_down.hash.keys.each do |key|
|
@masters_down.hash.keys.each do |key|
|
||||||
RailsMultisite::ConnectionManagement.with_connection(key) do
|
RailsMultisite::ConnectionManagement.with_connection(key) do
|
||||||
|
|
Loading…
Reference in New Issue