diff options
author | David Storch <david.storch@mongodb.com> | 2021-01-07 17:23:11 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-15 20:52:42 +0000 |
commit | 8ccc099b1821a18a120a9ce483bf64dac1899ad1 (patch) | |
tree | ebe12b1d0209d72077221b5e12398392610273a4 /src/mongo/db/query/planner_analysis.cpp | |
parent | 601e94d2edd7a07ca5dd3a66bf3bebaaf7597b4a (diff) | |
download | mongo-8ccc099b1821a18a120a9ce483bf64dac1899ad1.tar.gz |
SERVER-53435 Make queries run with DBHelpers plus SBE circumvent 'checkCanServeReadsFor()'
Such queries may be run when a node is neither primary nor
secondary, e.g. as part of executing an initial sync. This
affects only the SBE engine, since SBE's internal lock
policy requires it to have its own calls to
'checkCanServeReadsFor()'.
Diffstat (limited to 'src/mongo/db/query/planner_analysis.cpp')
-rw-r--r-- | src/mongo/db/query/planner_analysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/planner_analysis.cpp b/src/mongo/db/query/planner_analysis.cpp index 6c19619ba1c..f61f7fc3264 100644 --- a/src/mongo/db/query/planner_analysis.cpp +++ b/src/mongo/db/query/planner_analysis.cpp @@ -912,7 +912,7 @@ std::unique_ptr<QuerySolution> QueryPlannerAnalysis::analyzeDataAccess( const CanonicalQuery& query, const QueryPlannerParams& params, std::unique_ptr<QuerySolutionNode> solnRoot) { - auto soln = std::make_unique<QuerySolution>(); + auto soln = std::make_unique<QuerySolution>(params.options); soln->indexFilterApplied = params.indexFiltersApplied; solnRoot->computeProperties(); |