aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-02-24 09:05:47 -0800
committerXavier Noria <fxn@hashref.com>2012-02-24 09:11:59 -0800
commit9d1f1b1ea9e5d637984fda4f276db77ffd1dbdcb (patch)
tree3d1a6c6f38a2b8f19a8752caea733b8ebb8d5817 /activerecord/lib
parente04fa0e58976b452fcb1fe114777154c3abb4799 (diff)
downloadrails-9d1f1b1ea9e5d637984fda4f276db77ffd1dbdcb.tar.gz
rails-9d1f1b1ea9e5d637984fda4f276db77ffd1dbdcb.tar.bz2
rails-9d1f1b1ea9e5d637984fda4f276db77ffd1dbdcb.zip
removes verify_active_connections!
The method verify_active_connections! was used in the old days (up to 2.1 I think) by the dispatcher to verify the connections, but nowadays we do that in a different way and this method is obsolete.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb15
-rw-r--r--activerecord/lib/active_record/connection_handling.rb2
2 files changed, 1 insertions, 16 deletions
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 06b9bc5765..37a9d216df 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
@@ -184,16 +184,6 @@ module ActiveRecord
end
end
- # Verify active connections and remove and disconnect connections
- # associated with stale threads.
- def verify_active_connections! #:nodoc:
- synchronize do
- @connections.each do |connection|
- connection.verify!
- end
- end
- end
-
def clear_stale_cached_connections! # :nodoc:
end
deprecate :clear_stale_cached_connections!
@@ -364,11 +354,6 @@ module ActiveRecord
connection_pools.each_value {|pool| pool.disconnect! }
end
- # Verify active connections.
- def verify_active_connections! #:nodoc:
- connection_pools.each_value {|pool| pool.verify_active_connections! }
- end
-
# Locate the connection of the nearest super class. This can be an
# active or defined connection: if it is the latter, it will be
# opened and set as the active connection for the class it was defined
diff --git a/activerecord/lib/active_record/connection_handling.rb b/activerecord/lib/active_record/connection_handling.rb
index d7746826a9..7b218a5570 100644
--- a/activerecord/lib/active_record/connection_handling.rb
+++ b/activerecord/lib/active_record/connection_handling.rb
@@ -91,6 +91,6 @@ module ActiveRecord
end
delegate :clear_active_connections!, :clear_reloadable_connections!,
- :clear_all_connections!, :verify_active_connections!, :to => :connection_handler
+ :clear_all_connections!, :to => :connection_handler
end
end