summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/cursor_response.h
diff options
context:
space:
mode:
authorMartin Neupauer <martin.neupauer@mongodb.com>2018-08-09 17:09:08 -0400
committerMartin Neupauer <martin.neupauer@mongodb.com>2018-08-30 14:17:06 -0400
commit47306b9f203abee01f6fc54aa8d7ab8f8e25c8c9 (patch)
tree9d1734d0958b5f07afd6dad4adede420696fba3a /src/mongo/db/query/cursor_response.h
parentb46de3f6c06fab5cf9b7ea0f4176b32ff544a4bf (diff)
downloadmongo-47306b9f203abee01f6fc54aa8d7ab8f8e25c8c9.tar.gz
SERVER-35905 Plug pieces together to perform a distributed when applicable
Diffstat (limited to 'src/mongo/db/query/cursor_response.h')
-rw-r--r--src/mongo/db/query/cursor_response.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/query/cursor_response.h b/src/mongo/db/query/cursor_response.h
index 529654118df..52f4d30ed6a 100644
--- a/src/mongo/db/query/cursor_response.h
+++ b/src/mongo/db/query/cursor_response.h
@@ -166,6 +166,12 @@ public:
};
/**
+ * Constructs a vector of CursorResponses from a command BSON response that represents one or
+ * more cursors.
+ */
+ static std::vector<StatusWith<CursorResponse>> parseFromBSONMany(const BSONObj& cmdResponse);
+
+ /**
* Constructs a CursorResponse from the command BSON response.
*/
static StatusWith<CursorResponse> parseFromBSON(const BSONObj& cmdResponse);