summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_cursor_manager.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2018-03-20 14:00:27 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2018-04-23 14:20:43 -0400
commit8941fac630e0ac31649a1e32b0ea54c3930bdfec (patch)
treedb0a5f7fe34198d7b3974263e4a47f29a626b749 /src/mongo/s/query/cluster_cursor_manager.h
parentfc8096229e6ba7745431f77ec985eb65ee0541af (diff)
downloadmongo-8941fac630e0ac31649a1e32b0ea54c3930bdfec.tar.gz
SERVER-33991 Pass txnNumber in getMore requests through mongos
Diffstat (limited to 'src/mongo/s/query/cluster_cursor_manager.h')
-rw-r--r--src/mongo/s/query/cluster_cursor_manager.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_cursor_manager.h b/src/mongo/s/query/cluster_cursor_manager.h
index e8ab24cfa36..c255a2177e5 100644
--- a/src/mongo/s/query/cluster_cursor_manager.h
+++ b/src/mongo/s/query/cluster_cursor_manager.h
@@ -236,6 +236,16 @@ public:
*/
Status setAwaitDataTimeout(Milliseconds awaitDataTimeout);
+ /**
+ * Returns the logical session id of the command that created the underlying cursor.
+ */
+ boost::optional<LogicalSessionId> getLsid() const;
+
+ /**
+ * Returns the transaction number of the command that created the underlying cursor.
+ */
+ boost::optional<TxnNumber> getTxnNumber() const;
+
Microseconds getLeftoverMaxTimeMicros() const {
invariant(_cursor);
return _cursor->getLeftoverMaxTimeMicros();