summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find.h
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2019-12-20 18:43:14 +0000
committerevergreen <evergreen@mongodb.com>2019-12-20 18:43:14 +0000
commit3fea6b339770dcdead06803b0c794553c25b94fb (patch)
tree09f84db37faa08da48957d967ba597fb7207ebaa /src/mongo/db/query/find.h
parentc5bd0178db8f5ea16f7df4e78a52fda56926d0b9 (diff)
downloadmongo-3fea6b339770dcdead06803b0c794553c25b94fb.tar.gz
SERVER-44517 Refactor exhaust cursors on top of isMaster code changes
Diffstat (limited to 'src/mongo/db/query/find.h')
-rw-r--r--src/mongo/db/query/find.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/query/find.h b/src/mongo/db/query/find.h
index 0a1e1a15078..2522ae338c5 100644
--- a/src/mongo/db/query/find.h
+++ b/src/mongo/db/query/find.h
@@ -98,11 +98,8 @@ Message getMore(OperationContext* opCtx,
bool* isCursorAuthorized);
/**
- * Run the query 'q' and place the result in 'result'.
+ * Run the query 'q' and place the result in 'result'. Returns true if in exhaust mode.
*/
-std::string runQuery(OperationContext* opCtx,
- QueryMessage& q,
- const NamespaceString& ns,
- Message& result);
+bool runQuery(OperationContext* opCtx, QueryMessage& q, const NamespaceString& ns, Message& result);
} // namespace mongo