FIX: Don't clear connections on failover.

Clearing connections can be really slow (up to 10 seconds).
This commit is contained in:
Guo Xiang Tan 2019-01-22 14:48:01 +08:00
parent de197000e7
commit fe92b496a7

View File

@ -156,7 +156,6 @@ module ActiveRecord
if !fallback_handler.initialized
return postgresql_fallback_connection(config)
else
fallback_handler.clear_connections
raise e
end
end