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:
commit
850159bd2c
1 changed files with 2 additions and 1 deletions
|
@ -454,7 +454,8 @@ module ActiveRecord
|
|||
end
|
||||
c
|
||||
rescue
|
||||
disconnect!
|
||||
remove c
|
||||
c.disconnect!
|
||||
raise
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue