summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_request_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/query_request_helper.h')
-rw-r--r--src/mongo/db/query/query_request_helper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_request_helper.h b/src/mongo/db/query/query_request_helper.h
index 4d3ec6143c8..c0d8968f563 100644
--- a/src/mongo/db/query/query_request_helper.h
+++ b/src/mongo/db/query/query_request_helper.h
@@ -63,6 +63,12 @@ static constexpr auto kNaturalSortField = "$natural";
Status validateGetMoreCollectionName(StringData collectionName);
/**
+ * Returns a non-OK status if '$_resumeAfter' is set to an unexpected value, or the wrong type
+ * determined by the collection type.
+ */
+Status validateResumeAfter(const mongo::BSONObj& resumeAfter, bool isClusteredCollection);
+
+/**
* Returns a non-OK status if any property of the QR has a bad value (e.g. a negative skip
* value) or if there is a bad combination of options (e.g. awaitData is illegal without
* tailable).