summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/get_executor.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2019-10-04 15:38:42 +0000
committerevergreen <evergreen@mongodb.com>2019-10-04 15:38:42 +0000
commit1f0ae1c45604798888f8b2425475a473d7265bd5 (patch)
treec331eebf5795422507c4826c4219c303a20edced /src/mongo/db/query/get_executor.cpp
parent2d671ab90e0282773ea89f1860705503dd5bf74d (diff)
downloadmongo-1f0ae1c45604798888f8b2425475a473d7265bd5.tar.gz
SERVER-43202 propagate errors from interrupts during yielding
Diffstat (limited to 'src/mongo/db/query/get_executor.cpp')
-rw-r--r--src/mongo/db/query/get_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/get_executor.cpp b/src/mongo/db/query/get_executor.cpp
index ba1ad4a1e04..1c1f4f3387a 100644
--- a/src/mongo/db/query/get_executor.cpp
+++ b/src/mongo/db/query/get_executor.cpp
@@ -517,7 +517,7 @@ StatusWith<PrepareExecutionResult> prepareExecution(OperationContext* opCtx,
// We cannot figure out how to answer the query. Perhaps it requires an index
// we do not have?
if (0 == solutions.size()) {
- return Status(ErrorCodes::BadValue,
+ return Status(ErrorCodes::NoQueryExecutionPlans,
str::stream() << "error processing query: " << canonicalQuery->toString()
<< " No query solutions");
}