diff options
author | natalie.tsvetkova <natalie.tsvetkova@mongodb.com> | 2018-10-31 15:02:39 -0400 |
---|---|---|
committer | natalie.tsvetkova <natalie.tsvetkova@mongodb.com> | 2018-10-31 15:06:30 -0400 |
commit | bda182eaab096c34f57efe94f5e0a8022c54bcc3 (patch) | |
tree | ddb9cf9044fb674e04adcbefa3676af837995952 /src/mongo/db/repair_database_and_check_version.cpp | |
parent | 59395f0897a55e4c267e1d94a3ce847089d4e74d (diff) | |
download | mongo-bda182eaab096c34f57efe94f5e0a8022c54bcc3.tar.gz |
SERVER-37472: Improve behavior if user downgrades to 4.0 binary without setting FCV to 4.0
Diffstat (limited to 'src/mongo/db/repair_database_and_check_version.cpp')
-rw-r--r-- | src/mongo/db/repair_database_and_check_version.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/repair_database_and_check_version.cpp b/src/mongo/db/repair_database_and_check_version.cpp index 924d0688972..43b3d1f7537 100644 --- a/src/mongo/db/repair_database_and_check_version.cpp +++ b/src/mongo/db/repair_database_and_check_version.cpp @@ -415,16 +415,16 @@ StatusWith<bool> repairDatabasesAndCheckVersion(OperationContext* opCtx) { auto swVersion = FeatureCompatibilityVersionParser::parse(featureCompatibilityVersion); if (!swVersion.isOK()) { - severe() << swVersion.getStatus(); // Note this error path captures all cases of an FCV document existing, // but with any value other than "4.0" or "4.2". This includes unexpected // cases with no path forward such as the FCV value not being a string. return {ErrorCodes::MustDowngrade, str::stream() - << "UPGRADE PROBLEM: Unable to parse the " - "featureCompatibilityVersion document. The data files need " - "to be fully upgraded to version 4.0 before attempting an " - "upgrade to 4.2. If you are upgrading to 4.2, see " + << "UPGRADE PROBLEM: Found an invalid " + "featureCompatibilityVersion document (ERROR: " + << swVersion.getStatus() + << "). If the current featureCompatibilityVersion is below " + "4.0, see the documentation on upgrading at " << feature_compatibility_version_documentation::kUpgradeLink << "."}; } |