Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect secondary_preferred read preference by falling back to primary
As this read preference is following the exact same code path as the secondary read preference, this has the side-effect of not being able to make read operations when only the primary is available. This change ensures this fallback and simplifies the primary_preferred implementation to mimic the behaviour, only the other way around.
- Loading branch information
Tiago Sousa
committed
Dec 6, 2018
1 parent
fe46343
commit 6adf6e5
Showing
3 changed files
with
77 additions
and
17 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