diff options
author | Matthew Russotto <matthew.russotto@mongodb.com> | 2021-07-02 13:33:54 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-02 22:30:11 +0000 |
commit | 75a68c669b64b887dff1588216bfe5713f55f784 (patch) | |
tree | d47686a5b669ff69c50a1da213069308cfca2259 | |
parent | c44149642e9d98624c8d705b97fe23ce20427953 (diff) | |
download | mongo-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.cpp | 2 |
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")); |