Calling mongoc_cursor_set_hint (CDRIVER-1188) automatically sets the SlaveOkay bit. Normally this is correct since we intend to directly query a server, but via mongos setting SlaveOkay is equivalent to read preference "secondaryPreferred".
- is related to
-
CDRIVER-903 slaveOk bit not set when using hint to query a secondary directly
- Closed
-
CDRIVER-1188 Implement mongoc_cursor_set_hint()
- Closed
- related to
-
CDRIVER-1885 Hinted cursors should not set slaveOk bit for primary servers
- Closed