mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: Can't boot Discourse app with read-only PG connection take 2.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user