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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • v4.4
    • Service Arch 2020-03-09, Service Arch 2020-03-23

      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.

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

              Created:
              Updated:
              Resolved: