summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/getmore_request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/getmore_request.cpp')
-rw-r--r--src/mongo/db/query/getmore_request.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mongo/db/query/getmore_request.cpp b/src/mongo/db/query/getmore_request.cpp
index 4662942294c..b1a97f32c5e 100644
--- a/src/mongo/db/query/getmore_request.cpp
+++ b/src/mongo/db/query/getmore_request.cpp
@@ -81,7 +81,8 @@ Status GetMoreRequest::isValid() const {
if (batchSize && *batchSize <= 0) {
return Status(ErrorCodes::BadValue,
str::stream() << "Batch size for getMore must be positive, "
- << "but received: " << *batchSize);
+ << "but received: "
+ << *batchSize);
}
return Status::OK();
@@ -122,8 +123,8 @@ StatusWith<GetMoreRequest> GetMoreRequest::parseFromBSON(const std::string& dbna
} else if (str::equals(fieldName, kCollectionField)) {
if (el.type() != BSONType::String) {
return {ErrorCodes::TypeMismatch,
- str::stream()
- << "Field 'collection' must be of type string in: " << cmdObj};
+ str::stream() << "Field 'collection' must be of type string in: "
+ << cmdObj};
}
fullns = parseNs(dbname, cmdObj);
@@ -159,7 +160,9 @@ StatusWith<GetMoreRequest> GetMoreRequest::parseFromBSON(const std::string& dbna
} else if (!str::startsWith(fieldName, "$")) {
return {ErrorCodes::FailedToParse,
str::stream() << "Failed to parse: " << cmdObj << ". "
- << "Unrecognized field '" << fieldName << "'."};
+ << "Unrecognized field '"
+ << fieldName
+ << "'."};
}
}