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 = self, spec.config[:reaping_frequency]
+ @reaper =, spec.config[:reaping_frequency] || 10)
# default max pool size to 5

3 comments on commit 7cc588b

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)


/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)

@tenderlove see also #9710


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

Please sign in to comment.