Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
Fully Compatible
-
ALL
-
Sharding 2019-03-25
-
7
Description
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.