Commit d9dfa56
Christian Hergert
client: translate slaveok into secondary preferred.
This will allow clients to dispatch to secondaries for reads if
slaveok=true in the MongoDB connection URI as the default read
preference.
We might want to determine if SECONDARY_PREFERRED is the ideal, or
if we want NEAREST. Since NEAREST is a bit confusing in how it actually
works, SECONDARY_PREFERRED is probably the way to go.1 parent 128f92f commit d9dfa56
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
676 | 677 | | |
677 | 678 | | |
678 | 679 | | |
| |||
690 | 691 | | |
691 | 692 | | |
692 | 693 | | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
693 | 700 | | |
694 | 701 | | |
695 | 702 | | |
| |||
699 | 706 | | |
700 | 707 | | |
701 | 708 | | |
702 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
703 | 714 | | |
704 | 715 | | |
705 | 716 | | |
| |||
0 commit comments