mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove custom connection reaper.
Rails 6 fixed the reaper to use one thread to reap all the connection pools.
This commit is contained in:
committed by
Alan Guo Xiang Tan
parent
fc97f7e0e7
commit
878f06f1fe
@@ -144,8 +144,9 @@ class GlobalSetting
|
||||
|
||||
hash["host_names"] = hostnames
|
||||
hash["database"] = db_name
|
||||
|
||||
hash["prepared_statements"] = !!self.db_prepared_statements
|
||||
hash["idle_timeout"] = connection_reaper_age if connection_reaper_age.present?
|
||||
hash["reaping_frequency"] = connection_reaper_interval if connection_reaper_interval.present?
|
||||
|
||||
{ "production" => hash }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user