Permalink
Browse files

Clear stale, cached connections left behind by defunct threads. Elimi…

…nate duplicate connection cache.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 7568f18 commit 2b02596b964302ecbc38cb39bf820af6e32ee95e @jeremy jeremy committed Mar 1, 2006
Showing with 2 additions and 3 deletions.
  1. +2 −3 railties/lib/dispatcher.rb
@@ -67,13 +67,12 @@ def prepare_application
ActionController::Routing::Routes.reload if Dependencies.load?
prepare_breakpoint
require_dependency('application.rb') unless Object.const_defined?(:ApplicationController)
- ActiveRecord::Base.verify_connection_cache!
+ ActiveRecord::Base.verify_active_connections!
end
-
+
def reset_after_dispatch
reset_application! if Dependencies.load?
Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT)
- # ActiveRecord::Base.clear_connection_cache!
end
def prepare_breakpoint

0 comments on commit 2b02596

Please sign in to comment.