Revealed testing CDRIVER-679, the driver sends
{ $query: { ... }, $readPreference: { mode: "secondary", tags: [] } }
to a replica set secondary.
Uncomment the query pattern in _test_kill_cursors to reproduce.
To match Server Selection, the driver must send $readPreference only to mongos:
Verify the rest of $readPreference and slaveOkay-bit handling, too.
- is duplicated by
-
CDRIVER-829 Queries with non-primary read preference on secondaries should set slaveOk flag
- Closed
- related to
-
CDRIVER-240 Commands sent to mongos sometimes break when sending $readPreference
- Closed
-
PHPC-409 mongoc 1.2.0-rc0[-dev] changes
- Closed