Skip to content

Commit 76478d0

Browse files
committed
Merge PR ceph#60324 into main
* refs/pull/60324/head: mds/Beacon: set a thread name Reviewed-by: Patrick Donnelly <[email protected]>
2 parents fb02706 + 942044c commit 76478d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mds/Beacon.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "common/likely.h"
1818
#include "common/HeartbeatMap.h"
1919

20+
#include "include/compat.h" // for ceph_pthread_setname()
2021
#include "include/stringify.h"
2122
#include "include/util.h"
2223

@@ -73,6 +74,7 @@ void Beacon::init(const MDSMap &mdsmap)
7374
_notify_mdsmap(mdsmap);
7475

7576
sender = std::thread([this]() {
77+
ceph_pthread_setname(pthread_self(), "beacon");
7678
std::unique_lock<std::mutex> lock(mutex);
7779
bool sent;
7880
while (!finished) {

0 commit comments

Comments
 (0)