summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@mongodb.com>2021-07-02 13:33:54 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-02 22:30:11 +0000
commit75a68c669b64b887dff1588216bfe5713f55f784 (patch)
treed47686a5b669ff69c50a1da213069308cfca2259
parentc44149642e9d98624c8d705b97fe23ce20427953 (diff)
downloadmongo-75a68c669b64b887dff1588216bfe5713f55f784.tar.gz
SERVER-58248 Fix error code when checking if FeatureCompatibilityVersion is majority-committed
-rw-r--r--src/mongo/db/commands/feature_compatibility_version.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/feature_compatibility_version.cpp b/src/mongo/db/commands/feature_compatibility_version.cpp
index 44a76df34d3..361ca66b5ee 100644
--- a/src/mongo/db/commands/feature_compatibility_version.cpp
+++ b/src/mongo/db/commands/feature_compatibility_version.cpp
@@ -368,7 +368,7 @@ public:
repl::ReadConcernLevel::kMajorityReadConcern));
// If majority reads are not supported, we will take a full snapshot on clean shutdown
// and the new FCV will be included, so upgrade is possible.
- if (status.code() != ErrorCodes::CommandNotSupported)
+ if (status.code() != ErrorCodes::ReadConcernMajorityNotEnabled)
uassertStatusOK(
status.withContext("Most recent 'featureCompatibilityVersion' was not in the "
"majority snapshot on this node"));