1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

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