summaryrefslogtreecommitdiff
path: root/src/mongo/db/serverless
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/serverless')
-rw-r--r--src/mongo/db/serverless/shard_split_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/serverless/shard_split_utils.cpp b/src/mongo/db/serverless/shard_split_utils.cpp
index 846543bf140..14fa3708cda 100644
--- a/src/mongo/db/serverless/shard_split_utils.cpp
+++ b/src/mongo/db/serverless/shard_split_utils.cpp
@@ -73,8 +73,8 @@ ConnectionString makeRecipientConnectionString(const repl::ReplSetConfig& config
[](const repl::MemberConfig& member) { return member.getHostAndPort(); });
uassert(ErrorCodes::BadValue,
- "The recipient connection string must have at least three members.",
- recipientNodes.size() >= kMinimumRequiredRecipientNodes);
+ "The recipient connection string must have exactly three members.",
+ recipientNodes.size() == kMinimumRequiredRecipientNodes);
return ConnectionString::forReplicaSet(recipientSetName.toString(), recipientNodes);
}