aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-07-06 08:45:54 +0930
committerMatthew Draper <matthew@trebex.net>2016-07-06 09:00:07 +0930
commitf397b385c402c95b2066005b403e794fc5542868 (patch)
treea308bfecc8ed64cb91d2701f2fa95f3787bf0903 /railties/test
parentf4159506d68d7d7781e1534bebbf83c0c3423562 (diff)
downloadrails-f397b385c402c95b2066005b403e794fc5542868.tar.gz
rails-f397b385c402c95b2066005b403e794fc5542868.tar.bz2
rails-f397b385c402c95b2066005b403e794fc5542868.zip
Reduce locking by taking ownership of stale connections
This way, we aren't racing other threads, so we don't need to re-check the conditional. And we no longer need to hold the lock while calling remove (which can choose to make a new connection while we wait).
Diffstat (limited to 'railties/test')
0 files changed, 0 insertions, 0 deletions