Be more forceful in disconnecting connections during failover.

This commit is contained in:
Guo Xiang Tan
2018-09-04 10:30:56 +08:00
parent ad70502ab8
commit 08b268c5bc
2 changed files with 5 additions and 11 deletions

View File

@ -99,7 +99,7 @@ class PostgreSQLFallbackHandler
end
def clear_connections
ActiveRecord::Base.connection_pool.disconnect
ActiveRecord::Base.connection_pool.disconnect!
end
private