-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
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.