Specifying --readPreference=secondaryPreferred always results in the replica set primary server being selected.
This appears to be due to a bug in the MGO driver that does not handle secondaryPreferred and therefore defaults to primary.
- depends on
-
TOOLS-1833 Migrate tools (excluding mongoreplay) to new Go Driver
- Development Complete
- is duplicated by
-
TOOLS-2056 mongoexport can't read secondary
- Closed