]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Beacon: set a thread name 60324/head
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 11 Oct 2024 20:02:24 +0000 (22:02 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Tue, 15 Oct 2024 14:48:03 +0000 (16:48 +0200)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/mds/Beacon.cc

index 059b540feb02ebf9519a864bd96480ca582ae7a2..642d3428a27dfcc1e2541bdaed1fe23caf3b4dbb 100644 (file)
@@ -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<std::mutex> lock(mutex);
     bool sent;
     while (!finished) {