summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_client_cursor.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2018-03-22 14:37:12 +0000
committerBernard Gorman <bernard.gorman@gmail.com>2018-03-28 00:19:58 +0100
commit69202493b8c4754710e5a01bf16b6706b77b9ab8 (patch)
tree56a97a6062cf6fc63298997e38ae80bc7e8b1fb7 /src/mongo/s/query/cluster_client_cursor.h
parenta13de396ad866e677cb6e9598852b1f84e6b8346 (diff)
downloadmongo-69202493b8c4754710e5a01bf16b6706b77b9ab8.tar.gz
SERVER-34016 Add number of contacted shards to the mongos slow query log
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor.h')
-rw-r--r--src/mongo/s/query/cluster_client_cursor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor.h b/src/mongo/s/query/cluster_client_cursor.h
index c327589a224..653599def7e 100644
--- a/src/mongo/s/query/cluster_client_cursor.h
+++ b/src/mongo/s/query/cluster_client_cursor.h
@@ -34,6 +34,7 @@
#include "mongo/db/auth/user_name.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/logical_session_id.h"
+#include "mongo/s/query/cluster_client_cursor_params.h"
#include "mongo/s/query/cluster_query_result.h"
#include "mongo/s/query/router_exec_stage.h"
#include "mongo/util/time_support.h"
@@ -110,6 +111,11 @@ public:
virtual BSONObj getOriginatingCommand() const = 0;
/**
+ * Returns a reference to the vector of remote hosts involved in this operation.
+ */
+ virtual const std::vector<ClusterClientCursorParams::RemoteCursor>& getRemotes() const = 0;
+
+ /**
* Returns the number of result documents returned so far by this cursor via the next() method.
*/
virtual long long getNumReturnedSoFar() const = 0;