summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding_destined_recipient_test.cpp
diff options
context:
space:
mode:
authorVishnu Kaushik <vishnu.kaushik@mongodb.com>2020-11-17 16:28:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-17 16:55:10 +0000
commit44f2e1e43abeb6777f22635b6a0020beb06f7ad9 (patch)
treea1a1570eb749e80502261470211dc687288e1d48 /src/mongo/db/s/resharding_destined_recipient_test.cpp
parent23e7ab650cba5297dcc42bcdd2e491b65854bca5 (diff)
downloadmongo-44f2e1e43abeb6777f22635b6a0020beb06f7ad9.tar.gz
SERVER-50921 add method to return reshard key if appending resharding recipients to oplog
Diffstat (limited to 'src/mongo/db/s/resharding_destined_recipient_test.cpp')
-rw-r--r--src/mongo/db/s/resharding_destined_recipient_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/s/resharding_destined_recipient_test.cpp b/src/mongo/db/s/resharding_destined_recipient_test.cpp
index c0f4bb4312b..4b627d3fb4b 100644
--- a/src/mongo/db/s/resharding_destined_recipient_test.cpp
+++ b/src/mongo/db/s/resharding_destined_recipient_test.cpp
@@ -198,6 +198,7 @@ protected:
TypeCollectionReshardingFields reshardingFields;
reshardingFields.setUuid(UUID::gen());
reshardingFields.setDonorFields(TypeCollectionDonorFields{BSON("y" << 1)});
+ reshardingFields.setState(CoordinatorStateEnum::kPreparingToDonate);
CollectionType coll(kNss, env.version.epoch(), Date_t::now(), UUID::gen());
coll.setKeyPattern(BSON(kShardKey << 1));