From d1d990fb8058b49c01e140c1580a400144e5a167 Mon Sep 17 00:00:00 2001 From: JaySon Date: Wed, 15 May 2024 10:38:42 +0800 Subject: [PATCH] *: Fix too long thread name make TSAN failed to run (#9044) close pingcap/tiflash#9043 --- dbms/src/Storages/KVStore/FFI/JointThreadAllocInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Storages/KVStore/FFI/JointThreadAllocInfo.cpp b/dbms/src/Storages/KVStore/FFI/JointThreadAllocInfo.cpp index 36ae4ffde2c..153ef4bd28b 100644 --- a/dbms/src/Storages/KVStore/FFI/JointThreadAllocInfo.cpp +++ b/dbms/src/Storages/KVStore/FFI/JointThreadAllocInfo.cpp @@ -27,7 +27,7 @@ namespace DB JointThreadInfoJeallocMap::JointThreadInfoJeallocMap() { monitoring_thread = new std::thread([&]() { - setThreadName("ThreadMemoryTracer"); + setThreadName("ThdMemTrace"); while (true) { using namespace std::chrono_literals; @@ -189,4 +189,4 @@ void JointThreadInfoJeallocMap::stopThreadAllocInfo() } } -} // namespace DB \ No newline at end of file +} // namespace DB