Fix thread names for threads started via pools (#4349)

`RenameThreadPool` calls `ThreadRename` which adds `dash-` prefix internally
This commit is contained in:
UdjinM6 2021-08-24 19:18:52 +03:00 committed by GitHub
parent ca32dc07d7
commit b57970a70d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ void CBLSWorker::Start()
int workerCount = std::thread::hardware_concurrency() / 2;
workerCount = std::max(std::min(1, workerCount), 4);
workerPool.resize(workerCount);
RenameThreadPool(workerPool, "dash-bls-work");
RenameThreadPool(workerPool, "bls-work");
}
void CBLSWorker::Stop()

View File

@ -183,7 +183,7 @@ void CQuorumManager::Start()
int workerCount = std::thread::hardware_concurrency() / 2;
workerCount = std::max(std::min(1, workerCount), 4);
workerPool.resize(workerCount);
RenameThreadPool(workerPool, "dash-q-mngr");
RenameThreadPool(workerPool, "q-mngr");
}
void CQuorumManager::Stop()