The PHP and HHVM drivers need a public API for setting the hint on a cursor, since we all users to do their own server selection and execute queries, commands, and writes directly.
Despite CDRIVER-1131, the function should be named "hint" for BC (there is already a mongoc_cursor_get_hint() function), as is done for the bulk functions.
- depends on
-
CDRIVER-903 slaveOk bit not set when using hint to query a secondary directly
- Closed
- related to
-
CDRIVER-1872 mongoc_cursor_set_hint causes secondary reads in sharded cluster
- Closed
-
CDRIVER-1189 Document mongoc_cursor_get_hint
- Closed