mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 10:41:45 +08:00
FIX: Don't clear connections on failover.
Clearing connections can be really slow (up to 10 seconds).
This commit is contained in:
parent
de197000e7
commit
fe92b496a7
|
@ -156,7 +156,6 @@ module ActiveRecord
|
|||
if !fallback_handler.initialized
|
||||
return postgresql_fallback_connection(config)
|
||||
else
|
||||
fallback_handler.clear_connections
|
||||
raise e
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user