-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: libmongoc
-
None
With the new Server Selection Spec, there is no longer a list of "secondary-ok" commands, and commands not in that list, when executed with a non-"primary" read preference, are no longer silently routed to the primary. On the other hand, the read preference configured on the client, database, or collection object no longer applies to commands executed with a generic command helper:
Delete gSecondaryOkCommands:
... and review the functions mongoc_client_command, etc., for compliance with the spec.
- is depended on by
-
CDRIVER-906 Separate command and query code
- Closed
- is related to
-
CDRIVER-244 Log a warning when ignoring user-specified read preference
- Closed
-
CDRIVER-1137 Server Selection Spec for "query-like" command helpers
- Closed
- related to
-
CDRIVER-1127 mongoc_database_create_collection should set read prefs PRIMARY
- Closed
-
CDRIVER-1136 Server Selection Spec for mongoc_database_command_simple
- Closed