Permalink
Browse files

default the reaping frequency to 10 seconds

  • Loading branch information...
1 parent b98efa2 commit 7cc588b684f6d1af3e7fab1edfa6715e269e41a2 @tenderlove tenderlove committed Mar 11, 2013
@@ -238,7 +238,7 @@ def initialize(spec)
@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

3 comments on commit 7cc588b

@senny
Member
senny commented on 7cc588b Mar 15, 2013

This commit breaks mysql2 tests on my local machine. I can't run the tests any longer. It crashes with:

/Users/senny/Projects/rails/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:258:in `query': Mysql2::Error: Lost connection to MySQL server during query: CREATE TABLE `members` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `member_type_id` int(11)) ENGINE=InnoDB (ActiveRecord::StatementInvalid)

or

/Users/senny/Projects/rails/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:385:in `block in tables': undefined method `collect' for nil:NilClass (NoMethodError)
@jonleighton
Member

@tenderlove see also #9710

@yahonda
Contributor

It looks this commit causes kubo/ruby-oci8#29

Please sign in to comment.