mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 00:53:39 +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
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user