diff options
Diffstat (limited to 'src/mongo/db/query/get_executor.cpp')
-rw-r--r-- | src/mongo/db/query/get_executor.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/query/get_executor.cpp b/src/mongo/db/query/get_executor.cpp index b1bae642936..c27145180ac 100644 --- a/src/mongo/db/query/get_executor.cpp +++ b/src/mongo/db/query/get_executor.cpp @@ -915,7 +915,7 @@ StatusWith<unique_ptr<PlanExecutor, PlanExecutor::Deleter>> getExecutorUpdate( // the collection prior to calling this method. Explain, however, will never do // collection or database creation. if (!collection && request->isUpsert()) { - invariant(request->isExplain()); + invariant(request->explain()); } // If the parsed update does not have a user-specified collation, set it from the collection @@ -1002,9 +1002,6 @@ StatusWith<unique_ptr<PlanExecutor, PlanExecutor::Deleter>> getExecutorUpdate( // This is the regular path for when we have a CanonicalQuery. unique_ptr<CanonicalQuery> cq(parsedUpdate->releaseParsedQuery()); - // Transfer the explain verbosity level into the expression context. - cq->getExpCtx()->explain = verbosity; - std::unique_ptr<projection_ast::Projection> projection; if (!request->getProj().isEmpty()) { invariant(request->shouldReturnAnyDocs()); |