From 880b7e105322283b24fe635d417262717ea4f585 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 30 May 2016 11:50:02 +0800 Subject: [PATCH] FIX: Connections were incorrectly going to master when failing over. --- .../connection_adapters/postgresql_fallback_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb b/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb index 857cc28b566..b52a6c12ac0 100644 --- a/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb +++ b/lib/active_record/connection_adapters/postgresql_fallback_adapter.rb @@ -79,7 +79,7 @@ class PostgreSQLFallbackHandler end def verify? - !master && !running && !recently_checked? + !master && !running end private