diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2020-04-06 20:29:11 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-08 17:32:57 +0000 |
commit | bd95eb4bdee9f3fe4abf74bbe23687f12fbefb10 (patch) | |
tree | b55239ef74c3b465e15e76a72d518b1cd6ee9e79 /src/mongo/db | |
parent | 570ec43b77ec155f7422da8a16e593a6b5a73392 (diff) | |
download | mongo-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.cpp | 2 |
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))); |