Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13506

Investigate changes in SERVER-46567: Update shell methods Mongo.setReadPref and cursor.readPref to support hedging

    XMLWordPrintableJSON

Details

    Description

      Description

      Downstream Change Summary

      Mongo.setReadPref and Cursor.readPref now take in an additional argument hedgeOptions.

      Description of Linked Ticket

      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.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 38 weeks, 4 days ago