diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-03-20 14:00:27 -0400 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-04-23 14:20:43 -0400 |
commit | 8941fac630e0ac31649a1e32b0ea54c3930bdfec (patch) | |
tree | db0a5f7fe34198d7b3974263e4a47f29a626b749 /src/mongo/s/query/cluster_cursor_manager.h | |
parent | fc8096229e6ba7745431f77ec985eb65ee0541af (diff) | |
download | mongo-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.h | 10 |
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(); |