summaryrefslogtreecommitdiff
path: root/src/mongo/db/free_mon
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2019-04-09 20:18:00 +0000
committerSara Golemon <sara.golemon@mongodb.com>2019-04-15 16:05:47 +0000
commit3a4a0a95eaf8711206b1174f7a70042c51b01676 (patch)
tree40ee0c1d1c85718d925967a92a64e9245002692d /src/mongo/db/free_mon
parenteb05fd56aadd4acd4197fdee209dc3ad2b77d495 (diff)
downloadmongo-3a4a0a95eaf8711206b1174f7a70042c51b01676.tar.gz
SERVER-36886 Label the free monitoring threads with helpful names
Diffstat (limited to 'src/mongo/db/free_mon')
-rw-r--r--src/mongo/db/free_mon/free_mon_mongod.cpp4
-rw-r--r--src/mongo/db/free_mon/free_mon_processor.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/free_mon/free_mon_mongod.cpp b/src/mongo/db/free_mon/free_mon_mongod.cpp
index 9b86d33258f..b6c150f5e64 100644
--- a/src/mongo/db/free_mon/free_mon_mongod.cpp
+++ b/src/mongo/db/free_mon/free_mon_mongod.cpp
@@ -76,13 +76,13 @@ constexpr Seconds kDefaultMetricsGatherInterval(60);
auto makeTaskExecutor(ServiceContext* /*serviceContext*/) {
ThreadPool::Options tpOptions;
- tpOptions.poolName = "freemon";
+ tpOptions.poolName = "FreeMonHTTP";
tpOptions.maxThreads = 2;
tpOptions.onCreateThread = [](const std::string& threadName) {
Client::initThread(threadName.c_str());
};
return stdx::make_unique<executor::ThreadPoolTaskExecutor>(
- std::make_unique<ThreadPool>(tpOptions), executor::makeNetworkInterface("FreeMon"));
+ std::make_unique<ThreadPool>(tpOptions), executor::makeNetworkInterface("FreeMonNet"));
}
class FreeMonNetworkHttp : public FreeMonNetworkInterface {
diff --git a/src/mongo/db/free_mon/free_mon_processor.cpp b/src/mongo/db/free_mon/free_mon_processor.cpp
index 144b8fe5325..7013d72e244 100644
--- a/src/mongo/db/free_mon/free_mon_processor.cpp
+++ b/src/mongo/db/free_mon/free_mon_processor.cpp
@@ -156,7 +156,7 @@ void FreeMonProcessor::turnCrankForTest(size_t countMessagesToIgnore) {
void FreeMonProcessor::run() {
try {
- Client::initThread("free_mon");
+ Client::initThread("FreeMonProcessor");
Client* client = &cc();
while (true) {