summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_cursor_manager.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2018-11-27 03:50:42 +0000
committerBernard Gorman <bernard.gorman@gmail.com>2019-01-09 07:16:40 +0000
commit560a0c3a3e20924b362fc2b159c30255d62e81d2 (patch)
tree18a082ebad4c1e50f988025e8a53036836175400 /src/mongo/s/query/cluster_cursor_manager.h
parentec104311f774165b5b77b41b78c89e4f29baaca9 (diff)
downloadmongo-560a0c3a3e20924b362fc2b159c30255d62e81d2.tar.gz
SERVER-38411 Propagate postBatchResumeToken through mongoS to client
Diffstat (limited to 'src/mongo/s/query/cluster_cursor_manager.h')
-rw-r--r--src/mongo/s/query/cluster_cursor_manager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_cursor_manager.h b/src/mongo/s/query/cluster_cursor_manager.h
index 1a86765cd90..9e7d7a7b61c 100644
--- a/src/mongo/s/query/cluster_cursor_manager.h
+++ b/src/mongo/s/query/cluster_cursor_manager.h
@@ -199,6 +199,11 @@ public:
std::size_t getNumRemotes() const;
/**
+ * If applicable, returns the current most-recent resume token for this cursor.
+ */
+ BSONObj getPostBatchResumeToken() const;
+
+ /**
* Returns the cursor id for the underlying cursor, or zero if no cursor is owned.
*/
CursorId getCursorId() const;