mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
Be more forceful in disconnecting connections during failover.
This commit is contained in:
@ -99,7 +99,7 @@ class PostgreSQLFallbackHandler
|
||||
end
|
||||
|
||||
def clear_connections
|
||||
ActiveRecord::Base.connection_pool.disconnect
|
||||
ActiveRecord::Base.connection_pool.disconnect!
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user