diff options
author | David Storch <david.storch@mongodb.com> | 2022-07-14 18:09:12 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-14 19:16:56 +0000 |
commit | 5dfda9e29d70115f1af249d540b414ad8227834a (patch) | |
tree | c2340734a5ab04e57ddc1d950d8ac4994cfb4039 /src/mongo/db/query/canonical_query.cpp | |
parent | 91cef76e80b79fe4a2867413af5910027c3b69d5 (diff) | |
download | mongo-5dfda9e29d70115f1af249d540b414ad8227834a.tar.gz |
SERVER-61314 Consolidate featureFlagSbePlanCache with featureFlagSbeFull
Diffstat (limited to 'src/mongo/db/query/canonical_query.cpp')
-rw-r--r-- | src/mongo/db/query/canonical_query.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/canonical_query.cpp b/src/mongo/db/query/canonical_query.cpp index 0df32aab8fa..674e44bfac9 100644 --- a/src/mongo/db/query/canonical_query.cpp +++ b/src/mongo/db/query/canonical_query.cpp @@ -202,7 +202,7 @@ Status CanonicalQuery::init(OperationContext* opCtx, // If caching is disabled, do not perform any autoparameterization. if (!internalQueryDisablePlanCache.load() && - feature_flags::gFeatureFlagSbePlanCache.isEnabledAndIgnoreFCV()) { + feature_flags::gFeatureFlagSbeFull.isEnabledAndIgnoreFCV()) { const bool hasNoTextNodes = !QueryPlannerCommon::hasNode(_root.get(), MatchExpression::TEXT); if (hasNoTextNodes) { @@ -541,8 +541,8 @@ std::string CanonicalQuery::toStringShort() const { } CanonicalQuery::QueryShapeString CanonicalQuery::encodeKey() const { - return (feature_flags::gFeatureFlagSbePlanCache.isEnabledAndIgnoreFCV() && - !_forceClassicEngine && _sbeCompatible) + return (feature_flags::gFeatureFlagSbeFull.isEnabledAndIgnoreFCV() && !_forceClassicEngine && + _sbeCompatible) ? canonical_query_encoder::encodeSBE(*this) : canonical_query_encoder::encode(*this); } |