mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08: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
|
||||
return postgresql_fallback_connection(config)
|
||||
else
|
||||
fallback_handler.clear_connections
|
||||
raise e
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user