diff --git a/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb b/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb index 5dc5f2278ec..af45125adc2 100644 --- a/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb +++ b/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb @@ -7,7 +7,7 @@ class PostgreSQLFallbackHandler include Singleton def initialize - @masters_down = {} + @masters_down = DistributedCache.new('masters_down') @mutex = Mutex.new end