From 7cc588b684f6d1af3e7fab1edfa6715e269e41a2 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 11 Mar 2013 11:14:39 -0700 Subject: [PATCH] default the reaping frequency to 10 seconds --- .../connection_adapters/abstract/connection_pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb index 1754e424b8..9137504d15 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -238,7 +238,7 @@ module ActiveRecord @checkout_timeout = spec.config[:checkout_timeout] || 5 @dead_connection_timeout = spec.config[:dead_connection_timeout] || 5 - @reaper = Reaper.new self, spec.config[:reaping_frequency] + @reaper = Reaper.new(self, spec.config[:reaping_frequency] || 10) @reaper.run # default max pool size to 5