diff options
author | eileencodes <eileencodes@gmail.com> | 2017-01-13 16:16:40 -0800 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2017-01-13 16:34:01 -0800 |
commit | e15a23fa355ed29d70c2ec573cd7b2418f7ac8db (patch) | |
tree | 6794c17dfd4f8a036b985a8ca830c1aa6026df5f /activesupport/lib/active_support/inflector.rb | |
parent | f2ef5159073db0fc30e7af59497be7e2f155f807 (diff) | |
download | rails-e15a23fa355ed29d70c2ec573cd7b2418f7ac8db.tar.gz rails-e15a23fa355ed29d70c2ec573cd7b2418f7ac8db.tar.bz2 rails-e15a23fa355ed29d70c2ec573cd7b2418f7ac8db.zip |
Fix pool_from_any_process to use most recent spec
If a process is forked more than once, the pool was grabbing the oldest
spec, not the most recent spec. This wasn't noticed before because most
folks are lilely forking the process only once.
If you're forking the process multiple times however the wrong spec name
will be returned and an incorrect connection will be used for the
process.
This fixes the issue by reversing the list of spec names so we can grab
the most recent spec rather than the oldest spec.
Diffstat (limited to 'activesupport/lib/active_support/inflector.rb')
0 files changed, 0 insertions, 0 deletions