mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't clear connections on failover.
Clearing connections can be really slow (up to 10 seconds).
This commit is contained in:
@@ -156,7 +156,6 @@ module ActiveRecord
|
|||||||
if !fallback_handler.initialized
|
if !fallback_handler.initialized
|
||||||
return postgresql_fallback_connection(config)
|
return postgresql_fallback_connection(config)
|
||||||
else
|
else
|
||||||
fallback_handler.clear_connections
|
|
||||||
raise e
|
raise e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user