提交 0861af12 编写于 作者: A Alexey Milovidov

Fixed thread names

上级 a1754f76
......@@ -41,7 +41,7 @@ void MetricsTransmitter::run()
const auto & config = context.getConfigRef();
auto interval = config.getInt(config_name + ".interval", 60);
const std::string thread_name = "MericsTrns " + std::to_string(interval) + "s";
const std::string thread_name = "MericsTx" + std::to_string(interval) + "s";
setThreadName(thread_name.c_str());
const auto get_next_time = [](size_t seconds)
......
#include "AsynchronousBlockInputStream.h"
#include <Common/setThreadName.h>
#include <Common/CurrentThread.h>
......
......@@ -3,7 +3,6 @@
#include <Poco/Event.h>
#include <DataStreams/IBlockInputStream.h>
#include <Common/setThreadName.h>
#include <Common/CurrentMetrics.h>
#include <Common/ThreadPool.h>
#include <Common/MemoryTracker.h>
......
......@@ -90,7 +90,7 @@ void PushingToViewsBlockOutputStream::write(const Block & block)
auto thread_group = CurrentThread::getGroup();
pool.schedule([=]
{
setThreadName("PushingToViewsBlockOutputStream");
setThreadName("PushingToViews");
if (thread_group)
CurrentThread::attachToIfDetached(thread_group);
process(block, view_num);
......
......@@ -1867,7 +1867,7 @@ SessionCleaner::~SessionCleaner()
void SessionCleaner::run()
{
setThreadName("HTTPSessionCleaner");
setThreadName("SessionCleaner");
std::unique_lock lock{mutex};
......
#include <Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h>
#include <Storages/StorageReplicatedMergeTree.h>
#include <Common/setThreadName.h>
#include <Poco/Timestamp.h>
#include <random>
......
......@@ -2,7 +2,6 @@
#include <Storages/MergeTree/checkDataPart.h>
#include <Storages/MergeTree/ReplicatedMergeTreePartHeader.h>
#include <Storages/StorageReplicatedMergeTree.h>
#include <Common/setThreadName.h>
namespace ProfileEvents
......
......@@ -3,7 +3,6 @@
#include <Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h>
#include <Storages/MergeTree/ReplicatedMergeTreeQuorumEntry.h>
#include <Storages/MergeTree/ReplicatedMergeTreeAddress.h>
#include <Common/setThreadName.h>
#include <Common/ZooKeeper/KeeperException.h>
#include <Common/randomSeed.h>
......
......@@ -38,7 +38,6 @@
#include <Common/Macros.h>
#include <Storages/VirtualColumnUtils.h>
#include <Common/formatReadable.h>
#include <Common/setThreadName.h>
#include <Common/escapeForFileName.h>
#include <Common/StringUtils/StringUtils.h>
#include <Common/typeid_cast.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册