diff options
-rw-r--r-- | src/mongo/util/tcmalloc_server_status_section.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/util/tcmalloc_server_status_section.cpp b/src/mongo/util/tcmalloc_server_status_section.cpp index 303076ba784..cb7a88b8e0d 100644 --- a/src/mongo/util/tcmalloc_server_status_section.cpp +++ b/src/mongo/util/tcmalloc_server_status_section.cpp @@ -82,8 +82,7 @@ void threadStateChange() { // terrible runaway if we're not careful. stdx::lock_guard<stdx::mutex> lk(tcmallocCleanupLock); #endif - MallocExtension::instance()->MarkThreadIdle(); - MallocExtension::instance()->MarkThreadBusy(); + MallocExtension::instance()->MarkThreadTemporarilyIdle(); } // Register threadStateChange callback |