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:
Guo Xiang Tan
2020-05-21 14:32:41 +08:00
committed by Alan Guo Xiang Tan
parent fc97f7e0e7
commit 878f06f1fe
5 changed files with 2 additions and 65 deletions

View File

@@ -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