From e8d7622148929030c03e6d5b7b4a7c9c3b2f3e76 Mon Sep 17 00:00:00 2001 From: Gregory Wlodarek Date: Thu, 28 Apr 2022 14:39:22 +0000 Subject: SERVER-66033 All newly created time-series collections default to timeseriesBucketsMayHaveMixedSchemaData=false --- src/mongo/db/storage/durable_catalog_impl.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/mongo/db/storage/durable_catalog_impl.cpp') diff --git a/src/mongo/db/storage/durable_catalog_impl.cpp b/src/mongo/db/storage/durable_catalog_impl.cpp index 13b86f9af07..b379c3be729 100644 --- a/src/mongo/db/storage/durable_catalog_impl.cpp +++ b/src/mongo/db/storage/durable_catalog_impl.cpp @@ -288,17 +288,10 @@ StatusWith DurableCatalogImpl::_addEntry(OperationContext md.ns = nss.ns(); md.options = options; - // (Generic FCV reference): TODO SERVER-60912: When kLastLTS is 6.0, remove this FCV-gated - // upgrade code. - if (options.timeseries && - (serverGlobalParams.featureCompatibility.getVersion() == - multiversion::GenericFCV::kUpgradingFromLastLTSToLatest || - serverGlobalParams.featureCompatibility.getVersion() == - multiversion::GenericFCV::kLatest)) { - // When upgrading FCV from kLastLTS to kLatest, all newly created catalog entries for - // time-series collections will have this flag set to false by default as mixed-schema - // data is only possible in versions 5.1 and earlier. We do not have to wait for FCV to - // be fully upgraded to start this process. + if (options.timeseries) { + // All newly created catalog entries for time-series collections will have this flag set + // to false by default as mixed-schema data is only possible in versions 5.1 and + // earlier. md.timeseriesBucketsMayHaveMixedSchemaData = false; } b.append("md", md.toBSON()); -- cgit v1.2.1