Changeset 343
- Timestamp:
- 05/06/08 12:00:06 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plugin/acts_as_ferret/lib/ar_mysql_auto_reconnect_patch.rb
r340 r343 7 7 # in ActiveRecord, setting the verification_timeout to something less than 8 8 # the interactive-timeout parameter; 14400 sec = 6 hours 9 ActiveRecord::Base.allow_concurrency = true10 9 ActiveRecord::Base.verification_timeout = 14400 11 10 ActiveRecord::Base.establish_connection trunk/plugin/acts_as_ferret/lib/ferret_server.rb
r340 r343 62 62 include(ActsAsFerret::Remote::UnixDaemon) 63 63 64 require 'ar_mysql_auto_reconnect_patch'65 64 66 65 ################################################################################ … … 69 68 ################################################################################ 70 69 def initialize 70 ActiveRecord::Base.allow_concurrency = true 71 require 'ar_mysql_auto_reconnect_patch' 71 72 @cfg = ActsAsFerret::Remote::Config.new 72 73 ActiveRecord::Base.logger = @logger = Logger.new(@cfg.log_file)
