Details
Description
Change Mongo.setReadPref(mode, tagSet) to Mongo.setReadPref(mode, tagSet, hedgeOptions) and Cursor.readPref(mode, tagSet) to cursor.readPref(mode, tagSet, hedgeOptions), where hedgeOptions is an optional argument of the form {enabled: <bool>}.
Similar to the $readPreference subkey {hedge: {enabled: <bool>}}, passing {} is equivalent to passing
{enabled: true}since 'enabled' defaults to true.
Attachments
Issue Links
- is documented by
-
DOCS-13506 Investigate changes in SERVER-46567: Update shell methods Mongo.setReadPref and cursor.readPref to support hedging
-
- Closed
-