diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2021-03-09 02:45:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-09 03:52:02 +0000 |
commit | 8f5b19480757929c98a5d7675c4c1762b32b09e9 (patch) | |
tree | 55f9ecf39e834f240148054db54d4a4061fcb3ac /src/mongo/db/s/resharding_destined_recipient_test.cpp | |
parent | d4393f8baef001b8bd25ccd32055a156bb155777 (diff) | |
download | mongo-8f5b19480757929c98a5d7675c4c1762b32b09e9.tar.gz |
SERVER-54981 Add recipientShards field to resharding donor document.
Changes "reshardingFields.donorFields" to be filled in as part of the
coordinator's transition to kPreparingToDonate.
Diffstat (limited to 'src/mongo/db/s/resharding_destined_recipient_test.cpp')
-rw-r--r-- | src/mongo/db/s/resharding_destined_recipient_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding_destined_recipient_test.cpp b/src/mongo/db/s/resharding_destined_recipient_test.cpp index 7d932c4eb0e..ec16834362b 100644 --- a/src/mongo/db/s/resharding_destined_recipient_test.cpp +++ b/src/mongo/db/s/resharding_destined_recipient_test.cpp @@ -201,7 +201,10 @@ protected: TypeCollectionReshardingFields reshardingFields; reshardingFields.setReshardingUUID(UUID::gen()); - reshardingFields.setDonorFields(TypeCollectionDonorFields{env.tempNss, BSON("y" << 1)}); + reshardingFields.setDonorFields(TypeCollectionDonorFields{ + env.tempNss, + BSON("y" << 1), + {ShardId{kShardList[0].getName()}, ShardId{kShardList[1].getName()}}}); reshardingFields.setState(CoordinatorStateEnum::kPreparingToDonate); CollectionType coll(kNss, env.version.epoch(), Date_t::now(), UUID::gen()); |