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_client_cursor_mock.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_client_cursor_mock.h')
-rw-r--r-- | src/mongo/s/query/cluster_client_cursor_mock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor_mock.h b/src/mongo/s/query/cluster_client_cursor_mock.h index beb49735a8d..f5b1464b94b 100644 --- a/src/mongo/s/query/cluster_client_cursor_mock.h +++ b/src/mongo/s/query/cluster_client_cursor_mock.h @@ -43,6 +43,7 @@ class ClusterClientCursorMock final : public ClusterClientCursor { public: ClusterClientCursorMock(boost::optional<LogicalSessionId> lsid, + boost::optional<TxnNumber> txnNumber, stdx::function<void(void)> killCallback = stdx::function<void(void)>()); ~ClusterClientCursorMock(); @@ -79,6 +80,8 @@ public: boost::optional<LogicalSessionId> getLsid() const final; + boost::optional<TxnNumber> getTxnNumber() const final; + boost::optional<ReadPreferenceSetting> getReadPreference() const final; /** @@ -110,6 +113,8 @@ private: boost::optional<LogicalSessionId> _lsid; + boost::optional<TxnNumber> _txnNumber; + OperationContext* _opCtx = nullptr; }; |