Pass primary only readPref to CloneCollection cloneCollectionOptionsFromPrimaryShard

XMLWordPrintableJSON

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

      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
              Reporter:
              Janna Golden
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: