Merge pull request #18478 from yoshiokatsuneo/active_record_connection_pool_error_disconnect

ActiveRecord: On reconnection failure, release only failed connetion.
This commit is contained in:
Sean Griffin 2015-01-13 12:31:52 -07:00
commit 850159bd2c
1 changed files with 2 additions and 1 deletions

View File

@ -454,7 +454,8 @@ module ActiveRecord
end
c
rescue
disconnect!
remove c
c.disconnect!
raise
end
end