summaryrefslogtreecommitdiff
path: root/src/mongo/util/tcmalloc_server_status_section.cpp
diff options
context:
space:
mode:
authorMartin Bligh <mbligh@mongodb.com>2015-10-15 09:07:29 -0400
committerMartin Bligh <mbligh@mongodb.com>2015-10-15 09:07:29 -0400
commit12b91fc9249b23691b826dc8e7c1fc3cbfe215b9 (patch)
treee8630f4f9d47669e2a1153843cb76dde358b34fc /src/mongo/util/tcmalloc_server_status_section.cpp
parent955f62adbd320f1ef725572cf7b935880facab7e (diff)
downloadmongo-12b91fc9249b23691b826dc8e7c1fc3cbfe215b9.tar.gz
SERVER-18716: check return value of GetNumericProperty
Diffstat (limited to 'src/mongo/util/tcmalloc_server_status_section.cpp')
-rw-r--r--src/mongo/util/tcmalloc_server_status_section.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/tcmalloc_server_status_section.cpp b/src/mongo/util/tcmalloc_server_status_section.cpp
index 20b1b36495a..a6a9066f865 100644
--- a/src/mongo/util/tcmalloc_server_status_section.cpp
+++ b/src/mongo/util/tcmalloc_server_status_section.cpp
@@ -64,8 +64,8 @@ void threadStateChange() {
// Register threadStateChange callback
MONGO_INITIALIZER(TCMallocThreadIdleListener)(InitializerContext*) {
registerThreadIdleCallback(&threadStateChange);
- MallocExtension::instance()->GetNumericProperty("tcmalloc.max_total_thread_cache_bytes",
- &tcmallocPoolSize);
+ invariant(MallocExtension::instance()->GetNumericProperty(
+ "tcmalloc.max_total_thread_cache_bytes", &tcmallocPoolSize));
LOG(1) << "tcmallocPoolSize: " << tcmallocPoolSize << "\n";
return Status::OK();
}