summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-21 00:06:25 +0000
committershadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0>2007-02-21 00:06:25 +0000
commit4d02823302255a2359ed69d37612a4fa775a743e (patch)
tree57f5062d0fd678f5a2c60ea3644f59d7cf10cfad
parent7a9e28ae0524663b96b994d70af44f0b361b7940 (diff)
downloadpuppet-4d02823302255a2359ed69d37612a4fa775a743e.tar.gz
puppet-4d02823302255a2359ed69d37612a4fa775a743e.tar.xz
puppet-4d02823302255a2359ed69d37612a4fa775a743e.zip
I believe this fixes the issues in ticket #469
My testing on mysql shows connections being reaped. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2217 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--lib/puppet/rails.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/rails.rb b/lib/puppet/rails.rb
index 28f2b8584..bb4781c0e 100644
--- a/lib/puppet/rails.rb
+++ b/lib/puppet/rails.rb
@@ -61,6 +61,7 @@ module Puppet::Rails
ActiveRecord::Base.logger = Logger.new(Puppet[:railslog])
ActiveRecord::Base.allow_concurrency = true
+ ActiveRecord::Base.verify_active_connections!
begin
ActiveRecord::Base.establish_connection(database_arguments())