summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2020-04-06 20:29:11 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-08 17:32:57 +0000
commitbd95eb4bdee9f3fe4abf74bbe23687f12fbefb10 (patch)
treeb55239ef74c3b465e15e76a72d518b1cd6ee9e79 /src/mongo/db
parent570ec43b77ec155f7422da8a16e593a6b5a73392 (diff)
downloadmongo-bd95eb4bdee9f3fe4abf74bbe23687f12fbefb10.tar.gz
SERVER-47337 Only allow the commitQuorum option in createIndexes to be specified in FCV 4.4
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/commands/create_indexes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/create_indexes.cpp b/src/mongo/db/commands/create_indexes.cpp
index 250b2899206..c1689cc2124 100644
--- a/src/mongo/db/commands/create_indexes.cpp
+++ b/src/mongo/db/commands/create_indexes.cpp
@@ -287,7 +287,7 @@ boost::optional<CommitQuorumOptions> parseAndGetCommitQuorum(OperationContext* o
replCoord->isReplEnabled());
uassert(ErrorCodes::BadValue,
str::stream() << "commitQuorum is supported only for two phase index builds with "
- "majority commit quorum support enabled ",
+ "commit quorum support enabled, and requires FCV 4.4",
(IndexBuildProtocol::kTwoPhase == protocol && commitQuorumEnabled));
CommitQuorumOptions commitQuorum;
uassertStatusOK(commitQuorum.parse(cmdObj.getField(kCommitQuorumFieldName)));