summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/coll_mod.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2022-04-28 14:02:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-28 21:49:08 +0000
commit276fb7178679b295939ecf5709b10d4b75ad9d86 (patch)
treedad9b354fa46defc4e40567a75b2040d9dacaeb8 /src/mongo/db/catalog/coll_mod.cpp
parentadc47cc974960abf0bc10a1b15234dc95ee6fdd4 (diff)
downloadmongo-276fb7178679b295939ecf5709b10d4b75ad9d86.tar.gz
SERVER-60912 Remove FCV references for time-series measurement indexes
Diffstat (limited to 'src/mongo/db/catalog/coll_mod.cpp')
-rw-r--r--src/mongo/db/catalog/coll_mod.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mongo/db/catalog/coll_mod.cpp b/src/mongo/db/catalog/coll_mod.cpp
index 1924edfba19..7b35a04098c 100644
--- a/src/mongo/db/catalog/coll_mod.cpp
+++ b/src/mongo/db/catalog/coll_mod.cpp
@@ -928,29 +928,6 @@ Status _collModInternal(OperationContext* opCtx,
opCtx, coll.getWritableCollection(opCtx), desc, CreateIndexEntryFlags::kIsReady);
}
- // (Generic FCV reference): TODO SERVER-60912: When kLastLTS is 6.0, remove this FCV-gated
- // upgrade/downgrade code.
- const auto currentVersion = serverGlobalParams.featureCompatibility.getVersion();
- if (coll->getTimeseriesOptions() && !coll->getTimeseriesBucketsMayHaveMixedSchemaData() &&
- (currentVersion == multiversion::GenericFCV::kUpgradingFromLastLTSToLatest ||
- currentVersion == multiversion::GenericFCV::kLatest)) {
- // (Generic FCV reference): While upgrading the FCV from kLastLTS to kLatest, collMod is
- // called as part of the upgrade process to add the
- // 'timeseriesBucketsMayHaveMixedSchemaData=true' catalog entry flag for time-series
- // collections that are missing the flag. This indicates that the time-series collection
- // existed in earlier server versions and may have mixed-schema data.
- coll.getWritableCollection(opCtx)->setTimeseriesBucketsMayHaveMixedSchemaData(opCtx,
- true);
- } else if (coll->getTimeseriesBucketsMayHaveMixedSchemaData() &&
- (currentVersion == multiversion::GenericFCV::kDowngradingFromLatestToLastLTS ||
- currentVersion == multiversion::GenericFCV::kLastLTS)) {
- // (Generic FCV reference): While downgrading the FCV to kLastLTS, collMod is called as
- // part of the downgrade process to remove the 'timeseriesBucketsMayHaveMixedSchemaData'
- // catalog entry flag for time-series collections that have the flag.
- coll.getWritableCollection(opCtx)->setTimeseriesBucketsMayHaveMixedSchemaData(
- opCtx, boost::none);
- }
-
// Only observe non-view collMods, as view operations are observed as operations on the
// system.views collection.
auto* const opObserver = opCtx->getServiceContext()->getOpObserver();