Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-46567

Update shell methods Mongo.setReadPref and cursor.readPref to support hedging

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • None
    • Sharding
    • None
    • Fully Compatible
    • v4.4
    • Service Arch 2020-03-09, Service Arch 2020-03-23

    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

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: