summaryrefslogtreecommitdiff
path: root/src/mongo/db/db.cpp
diff options
context:
space:
mode:
authorPavithra Vetriselvan <pavithra.vetriselvan@mongodb.com>2019-11-07 19:53:49 +0000
committerevergreen <evergreen@mongodb.com>2019-11-07 19:53:49 +0000
commit98c73ff5aa5a151483a2e69b15dd60172238ceba (patch)
treeb1f9ee6e32c3d3778c90719ada89ea69c0d93a21 /src/mongo/db/db.cpp
parent26f431320c0f4d695365f013a2939c7b71758eec (diff)
downloadmongo-98c73ff5aa5a151483a2e69b15dd60172238ceba.tar.gz
SERVER-35846 sanitize repl thread names
Diffstat (limited to 'src/mongo/db/db.cpp')
-rw-r--r--src/mongo/db/db.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/db.cpp b/src/mongo/db/db.cpp
index 269304be6e3..c5501b733be 100644
--- a/src/mongo/db/db.cpp
+++ b/src/mongo/db/db.cpp
@@ -806,7 +806,8 @@ void setUpCatalog(ServiceContext* serviceContext) {
auto makeReplicationExecutor(ServiceContext* serviceContext) {
ThreadPool::Options tpOptions;
- tpOptions.poolName = "replexec";
+ tpOptions.threadNamePrefix = "ReplCoord-";
+ tpOptions.poolName = "ReplCoordThreadPool";
tpOptions.maxThreads = 50;
tpOptions.onCreateThread = [](const std::string& threadName) {
Client::initThread(threadName.c_str());
@@ -815,7 +816,7 @@ auto makeReplicationExecutor(ServiceContext* serviceContext) {
hookList->addHook(std::make_unique<rpc::LogicalTimeMetadataHook>(serviceContext));
return std::make_unique<executor::ThreadPoolTaskExecutor>(
std::make_unique<ThreadPool>(tpOptions),
- executor::makeNetworkInterface("Replication", nullptr, std::move(hookList)));
+ executor::makeNetworkInterface("ReplNetwork", nullptr, std::move(hookList)));
}
void setUpReplication(ServiceContext* serviceContext) {