SERVER-114507ClosedFixed

$out targeting moved unsharded collection should create the new collection on the same shard

Scenario: # Shard A is the primay shard for {{db}} # Unsharded {{db.coll}} has been placed on shard B (via {{{}moveCollection{}}}) # {{$out}} writing to the same collection db.coll creates it on shard A (that is the primary shard) rather than shard B (that is the shard it used to live on). This ticket is to ensure that {{$out}} recreates the unsharded collection on the same shard as it existed before.

Affected Versions
Versions known to exhibit this issue
8.0.08.2.0
Fixed Versions
Versions that include the fix
9.1.0-rc09.0.48.3.16
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkp