From: Max Kellermann Date: Fri, 11 Oct 2024 20:02:24 +0000 (+0200) Subject: mds/Beacon: set a thread name X-Git-Tag: v20.0.0~793^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=942044cc603caaf29eb43e59a15a75910d33873a;p=ceph.git mds/Beacon: set a thread name Signed-off-by: Max Kellermann --- diff --git a/src/mds/Beacon.cc b/src/mds/Beacon.cc index 059b540feb02e..642d3428a27df 100644 --- a/src/mds/Beacon.cc +++ b/src/mds/Beacon.cc @@ -17,6 +17,7 @@ #include "common/likely.h" #include "common/HeartbeatMap.h" +#include "include/compat.h" // for ceph_pthread_setname() #include "include/stringify.h" #include "include/util.h" @@ -73,6 +74,7 @@ void Beacon::init(const MDSMap &mdsmap) _notify_mdsmap(mdsmap); sender = std::thread([this]() { + ceph_pthread_setname(pthread_self(), "beacon"); std::unique_lock lock(mutex); bool sent; while (!finished) {