summaryrefslogtreecommitdiff
path: root/src/mongo/util/tcmalloc_set_parameter.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /src/mongo/util/tcmalloc_set_parameter.cpp
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'src/mongo/util/tcmalloc_set_parameter.cpp')
-rw-r--r--src/mongo/util/tcmalloc_set_parameter.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mongo/util/tcmalloc_set_parameter.cpp b/src/mongo/util/tcmalloc_set_parameter.cpp
index 951086ae4c1..130f77535cf 100644
--- a/src/mongo/util/tcmalloc_set_parameter.cpp
+++ b/src/mongo/util/tcmalloc_set_parameter.cpp
@@ -85,16 +85,18 @@ Status TcmallocNumericPropertyServerParameter::set(const BSONElement& newValueEl
return Status(ErrorCodes::TypeMismatch,
str::stream() << "Expected server parameter " << newValueElement.fieldName()
<< " 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 "
- << newValueElement.fieldName() << "; expected a value between 0 and "
+ return Status(
+ ErrorCodes::BadValue,
+ str::stream() << "Value " << newValueElement.toString(false) << " is out of range for "
+ << newValueElement.fieldName()
+ << "; expected a value between 0 and "
<< std::min<unsigned long long>(std::numeric_limits<size_t>::max(),
std::numeric_limits<long long>::max()));
}
@@ -128,7 +130,8 @@ TcmallocNumericPropertyServerParameter tcmallocAggressiveMemoryDecommit(
MONGO_INITIALIZER_GENERAL(TcmallocConfigurationDefaults,
("SystemInfo"),
- ("BeginStartupOptionHandling"))(InitializerContext*) {
+ ("BeginStartupOptionHandling"))
+(InitializerContext*) {
// Before processing the command line options, if the user has not specified a value in via
// the environment, set tcmalloc.max_total_thread_cache_bytes to its default value.
if (getenv("TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES")) {