summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/getmore_request.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/getmore_request.h')
-rw-r--r--src/mongo/db/query/getmore_request.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/mongo/db/query/getmore_request.h b/src/mongo/db/query/getmore_request.h
index 2d30f96ed75..c967408d008 100644
--- a/src/mongo/db/query/getmore_request.h
+++ b/src/mongo/db/query/getmore_request.h
@@ -38,38 +38,38 @@
namespace mongo {
- struct GetMoreRequest {
- /**
- * Construct an empty request.
- */
- GetMoreRequest();
+struct GetMoreRequest {
+ /**
+ * Construct an empty request.
+ */
+ GetMoreRequest();
- /**
- * Construct a GetMoreRequest from the command specification and db name.
- */
- static StatusWith<GetMoreRequest> parseFromBSON(const std::string& dbname,
- const BSONObj& cmdObj);
+ /**
+ * Construct a GetMoreRequest from the command specification and db name.
+ */
+ static StatusWith<GetMoreRequest> parseFromBSON(const std::string& dbname,
+ const BSONObj& cmdObj);
- static std::string parseNs(const std::string& dbname, const BSONObj& cmdObj);
+ static std::string parseNs(const std::string& dbname, const BSONObj& cmdObj);
- const NamespaceString nss;
- const CursorId cursorid;
+ const NamespaceString nss;
+ const CursorId cursorid;
- // The batch size is optional. If not provided, we will put as many documents into the batch
- // as fit within the byte limit.
- const boost::optional<int> batchSize;
+ // The batch size is optional. If not provided, we will put as many documents into the batch
+ // as fit within the byte limit.
+ const boost::optional<int> batchSize;
- private:
- /**
- * Construct from parsed BSON
- */
- GetMoreRequest(const std::string& fullns, CursorId id, boost::optional<int> batch);
+private:
+ /**
+ * Construct from parsed BSON
+ */
+ GetMoreRequest(const std::string& fullns, CursorId id, boost::optional<int> batch);
- /**
- * Returns a non-OK status if there are semantic errors in the parsed request
- * (e.g. a negative batchSize).
- */
- Status isValid() const;
- };
+ /**
+ * Returns a non-OK status if there are semantic errors in the parsed request
+ * (e.g. a negative batchSize).
+ */
+ Status isValid() const;
+};
-} // namespace mongo
+} // namespace mongo