summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/plan_executor.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-08-24 16:29:15 -0400
committerDavid Storch <david.storch@10gen.com>2015-08-24 17:09:27 -0400
commite27d3ac58320f3bc1f39ab97825e2fbb4ba6263d (patch)
tree2fb4dd6394c0791104ea71c010e07f0717cb2073 /src/mongo/db/query/plan_executor.h
parentfbefbf20ffee569876e912b97648ada39010f65c (diff)
downloadmongo-e27d3ac58320f3bc1f39ab97825e2fbb4ba6263d.tar.gz
SERVER-20051 check return value of PlanYieldPolicy::yield()
Diffstat (limited to 'src/mongo/db/query/plan_executor.h')
-rw-r--r--src/mongo/db/query/plan_executor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/plan_executor.h b/src/mongo/db/query/plan_executor.h
index ed21f8b047a..4d91e279e6e 100644
--- a/src/mongo/db/query/plan_executor.h
+++ b/src/mongo/db/query/plan_executor.h
@@ -241,9 +241,10 @@ public:
* Returns true if the state was successfully restored and the execution tree can be
* work()'d.
*
- * If allowed, will yield and retry if a WriteConflictException is encountered.
+ * Returns false if the PlanExecutor was killed while saved. A killed execution tree cannot be
+ * worked and should be deleted.
*
- * Returns false otherwise. The execution tree cannot be worked and should be deleted.
+ * If allowed, will yield and retry if a WriteConflictException is encountered.
*/
bool restoreState();