mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:32:45 +08:00
FIX: Can't boot Discourse app with read-only PG connection take 2.
This commit is contained in:
parent
1dbe13886f
commit
d192924876
|
@ -57,6 +57,8 @@ class PostgreSQLFallbackHandler
|
|||
end
|
||||
|
||||
def initiate_fallback_to_master
|
||||
return unless @initialized
|
||||
|
||||
@masters_down.hash.keys.each do |key|
|
||||
RailsMultisite::ConnectionManagement.with_connection(key) do
|
||||
begin
|
||||
|
|
Loading…
Reference in New Issue
Block a user