From 215852745beae6cb4d61d2affff07cc1b2ef0186 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 2 Mar 2006 14:36:06 +0000 Subject: Revert allow_concurrency change for better testing. Retrieve_connection in two steps to avoid side-effect bug (yuk). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../connection_adapters/abstract/connection_specification.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb index a65d6df6a1..7cb230fd3a 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb @@ -55,7 +55,8 @@ module ActiveRecord conn else # retrieve_connection sets the cache key. - active_connections[@active_connection_name] = retrieve_connection + conn = retrieve_connection + active_connections[@active_connection_name] = conn end end -- cgit v1.2.3