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

Pass primary only readPref to CloneCollection cloneCollectionOptionsFromPrimaryShard

    • Fully Compatible
    • ALL
    • Sharding 2019-03-25
    • 7

      We currently get the read pref from the opCtx, but this is changed to secondaryPreferred when we run listCollections earlier in the command. CloneCollection cloneCollectionOptionsFromPrimaryShard must be run on a primary, so we should just pass PrimaryOnly as the read pref.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: