summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/coll_mod.cpp6
-rw-r--r--src/mongo/db/catalog/database_impl.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/catalog/coll_mod.cpp b/src/mongo/db/catalog/coll_mod.cpp
index 86e955af2a8..14c1ba4f3c3 100644
--- a/src/mongo/db/catalog/coll_mod.cpp
+++ b/src/mongo/db/catalog/coll_mod.cpp
@@ -178,14 +178,14 @@ StatusWith<CollModRequest> parseCollModRequest(OperationContext* opCtx,
// Save this to a variable to avoid reading the atomic variable multiple times.
const auto currentFCV = serverGlobalParams.featureCompatibility.getVersion();
- // If the feature compatibility version is not 4.0, and we are validating features as
- // master, ban the use of new agg features introduced in 4.0 to prevent them from being
+ // If the feature compatibility version is not 4.2, and we are validating features as
+ // master, ban the use of new agg features introduced in 4.2 to prevent them from being
// persisted in the catalog.
boost::optional<ServerGlobalParams::FeatureCompatibility::Version>
maxFeatureCompatibilityVersion;
if (serverGlobalParams.validateFeaturesAsMaster.load() &&
currentFCV !=
- ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo40) {
+ ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo42) {
maxFeatureCompatibilityVersion = currentFCV;
}
auto statusW = coll->parseValidator(opCtx,
diff --git a/src/mongo/db/catalog/database_impl.cpp b/src/mongo/db/catalog/database_impl.cpp
index 6d5ea4b0552..5d4ed394e7c 100644
--- a/src/mongo/db/catalog/database_impl.cpp
+++ b/src/mongo/db/catalog/database_impl.cpp
@@ -1000,11 +1000,11 @@ MONGO_REGISTER_SHIM(Database::userCreateNS)
// Save this to a variable to avoid reading the atomic variable multiple times.
const auto currentFCV = serverGlobalParams.featureCompatibility.getVersion();
- // If the feature compatibility version is not 4.0, and we are validating features as
- // master, ban the use of new agg features introduced in 4.0 to prevent them from being
+ // If the feature compatibility version is not 4.2, and we are validating features as
+ // master, ban the use of new agg features introduced in 4.2 to prevent them from being
// persisted in the catalog.
if (serverGlobalParams.validateFeaturesAsMaster.load() &&
- currentFCV != ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo40) {
+ currentFCV != ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo42) {
expCtx->maxFeatureCompatibilityVersion = currentFCV;
}
auto statusWithMatcher =