summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/get_executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/get_executor.cpp')
-rw-r--r--src/mongo/db/query/get_executor.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/mongo/db/query/get_executor.cpp b/src/mongo/db/query/get_executor.cpp
index cdb4375ffef..c62c497d7ba 100644
--- a/src/mongo/db/query/get_executor.cpp
+++ b/src/mongo/db/query/get_executor.cpp
@@ -1186,13 +1186,10 @@ inline bool isQuerySbeCompatible(OperationContext* opCtx,
// ENSURE_SORTED stage.
const bool doesNotNeedEnsureSorted = !cq->getFindCommandRequest().getNtoreturn();
- // OP_QUERY style find commands are not currently supported by SBE.
- const bool isNotLegacy = !CurOp::get(opCtx)->isLegacyQuery();
-
// Queries against a time-series collection are not currently supported by SBE.
const bool isQueryNotAgainstTimeseriesCollection = !(cq->nss().isTimeseriesBucketsCollection());
return allExpressionsSupported && isNotCount && doesNotContainMetadataRequirements &&
- isNotLegacy && doesNotNeedEnsureSorted && isQueryNotAgainstTimeseriesCollection &&
+ doesNotNeedEnsureSorted && isQueryNotAgainstTimeseriesCollection &&
doesNotSortOnMetaOrPathWithNumericComponents && isNotOplog;
}
} // namespace
@@ -1245,17 +1242,6 @@ StatusWith<std::unique_ptr<PlanExecutor, PlanExecutor::Deleter>> getExecutorFind
opCtx, collection, std::move(canonicalQuery), yieldPolicy, plannerOptions);
}
-StatusWith<std::unique_ptr<PlanExecutor, PlanExecutor::Deleter>> getExecutorLegacyFind(
- OperationContext* opCtx,
- const CollectionPtr* collection,
- std::unique_ptr<CanonicalQuery> canonicalQuery) {
- return _getExecutorFind(opCtx,
- collection,
- std::move(canonicalQuery),
- PlanYieldPolicy::YieldPolicy::YIELD_AUTO,
- QueryPlannerParams::DEFAULT);
-}
-
namespace {
/**