summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/database_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/database_impl.cpp')
-rw-r--r--src/mongo/db/catalog/database_impl.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/catalog/database_impl.cpp b/src/mongo/db/catalog/database_impl.cpp
index 12ab0dfedc0..a3727707381 100644
--- a/src/mongo/db/catalog/database_impl.cpp
+++ b/src/mongo/db/catalog/database_impl.cpp
@@ -815,13 +815,9 @@ Collection* DatabaseImpl::createCollection(OperationContext* opCtx,
optionsWithUUID.autoIndexId == CollectionOptions::DEFAULT) {
// createCollection() may be called before the in-memory fCV parameter is
// initialized, so use the unsafe fCV getter here.
- const auto featureCompatibilityVersion =
- serverGlobalParams.featureCompatibility.getVersionUnsafe();
IndexCatalog* ic = collection->getIndexCatalog();
fullIdIndexSpec = uassertStatusOK(ic->createIndexOnEmptyCollection(
- opCtx,
- !idIndex.isEmpty() ? idIndex
- : ic->getDefaultIdIndexSpec(featureCompatibilityVersion)));
+ opCtx, !idIndex.isEmpty() ? idIndex : ic->getDefaultIdIndexSpec()));
} else {
// autoIndexId: false is only allowed on unreplicated collections.
uassert(50001,