diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2018-03-14 17:46:22 +0000 |
---|---|---|
committer | Bernard Gorman <bernard.gorman@gmail.com> | 2018-03-15 17:33:50 +0000 |
commit | 5ecf2c0a5bffa837c96ad20dea23a94c5165739a (patch) | |
tree | 254b1baa62ecd3092b8962778fcc0480c066de03 /src/mongo/s/query/cluster_client_cursor_mock.h | |
parent | 8c639f958eb5edff4d52560e4c3dfe04c7a78f31 (diff) | |
download | mongo-5ecf2c0a5bffa837c96ad20dea23a94c5165739a.tar.gz |
SERVER-18094 Add 'localOps' parameter to $currentOp to show local mongoS operations
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 81fb52f15b4..607250bba46 100644 --- a/src/mongo/s/query/cluster_client_cursor_mock.h +++ b/src/mongo/s/query/cluster_client_cursor_mock.h @@ -67,6 +67,8 @@ public: bool isTailableAndAwaitData() const final; + BSONObj getOriginatingCommand() const final; + long long getNumReturnedSoFar() const final; void queueResult(const ClusterQueryResult& result) final; @@ -96,6 +98,9 @@ private: std::queue<StatusWith<ClusterQueryResult>> _resultsQueue; stdx::function<void(void)> _killCallback; + // Originating command object. + BSONObj _originatingCommand; + // Number of returned documents. long long _numReturnedSoFar = 0; |