summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
authorNicholas Zolnierz <nicholas.zolnierz@mongodb.com>2022-08-03 16:08:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-03 17:22:30 +0000
commitc9bbd1cfae470f2b3229e69957f512d2a2db6663 (patch)
tree1176c9ce875b1abfd346b1614c96608d6a7ee434 /src/mongo/db/catalog
parent970a89221d0520693bc64bb33df6b1bf66d7c56d (diff)
downloadmongo-c9bbd1cfae470f2b3229e69957f512d2a2db6663.tar.gz
SERVER-62042 Consolidate query optimization and execution control into a single knob
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/database_impl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/database_impl.cpp b/src/mongo/db/catalog/database_impl.cpp
index 0bf108619ca..6cee2e1b636 100644
--- a/src/mongo/db/catalog/database_impl.cpp
+++ b/src/mongo/db/catalog/database_impl.cpp
@@ -914,7 +914,9 @@ Collection* DatabaseImpl::createCollection(OperationContext* opCtx,
}
if (MONGO_unlikely(createColumnIndex)) {
- invariant(!internalQueryForceClassicEngine.load(),
+ invariant(ServerParameterSet::getNodeParameterSet()
+ ->get<QueryFrameworkControl>("internalQueryFrameworkControl")
+ ->_data.get() != QueryFrameworkControlEnum::kForceClassicEngine,
"Column Store Indexes failpoint in use without enabling SBE engine");
uassertStatusOK(collection->getIndexCatalog()->createIndexOnEmptyCollection(
opCtx, collection, kColumnStoreSpec));