-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add :min_wait_timeout option to sharded_threaded connection p…
…ool and default to 0.1, fixes stalling observed on JRuby" This reverts commit 72f08cd. This implements a better fix, by rechecking for an available connection inside the sync block before waiting on the condition variable. Because the recheck is inside the sync block, it should avoid the race condition (barring a bug in the condition variable signal/wait code). Add an acquire_available private method to both connection pools to handle this logic.
- Loading branch information
1 parent
7b748b5
commit a687bdd
Showing
4 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters