Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
Fully Compatible
-
Sharding 2020-12-14
-
1
Description
This would be mimicking the logic shardCollection has to implicitly create a new index if no suitable index for the shard key pattern is found in resharding_recipient_service.cpp. createTemporaryReshardingCollectionLocally() currently only builds the same set of indexes the MinKey-chunk owning donor shard has.
CollectionOptionsAndIndexes optionsAndIndexes = {reshardingUUID, indexes, idIndex, collOptions};
|
MigrationDestinationManager::cloneCollectionIndexesAndOptions(
|
opCtx, reshardingNss, optionsAndIndexes);
|