summaryrefslogtreecommitdiff
path: root/src/mongo/util/tcmalloc_set_parameter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/tcmalloc_set_parameter.cpp')
-rw-r--r--src/mongo/util/tcmalloc_set_parameter.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mongo/util/tcmalloc_set_parameter.cpp b/src/mongo/util/tcmalloc_set_parameter.cpp
index b7dd65fe752..87022f520da 100644
--- a/src/mongo/util/tcmalloc_set_parameter.cpp
+++ b/src/mongo/util/tcmalloc_set_parameter.cpp
@@ -75,18 +75,16 @@ StatusWith<size_t> validateTCMallocValue(StringData name, const BSONElement& new
return {ErrorCodes::TypeMismatch,
str::stream() << "Expected server parameter " << name
<< " to have numeric type, but found "
- << newValueElement.toString(false)
- << " of type "
+ << newValueElement.toString(false) << " of type "
<< typeName(newValueElement.type())};
}
long long valueAsLongLong = newValueElement.safeNumberLong();
if (valueAsLongLong < 0 ||
static_cast<unsigned long long>(valueAsLongLong) > std::numeric_limits<size_t>::max()) {
- return Status(
- ErrorCodes::BadValue,
- str::stream() << "Value " << newValueElement.toString(false) << " is out of range for "
- << name
- << "; expected a value between 0 and "
+ return Status(ErrorCodes::BadValue,
+ str::stream()
+ << "Value " << newValueElement.toString(false) << " is out of range for "
+ << name << "; expected a value between 0 and "
<< std::min<unsigned long long>(std::numeric_limits<size_t>::max(),
std::numeric_limits<long long>::max()));
}