summaryrefslogtreecommitdiffstats
path: root/src/common/ceph_timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/ceph_timer.h')
-rw-r--r--src/common/ceph_timer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ceph_timer.h b/src/common/ceph_timer.h
index bc324bfa243..7fb2c7bac12 100644
--- a/src/common/ceph_timer.h
+++ b/src/common/ceph_timer.h
@@ -98,6 +98,7 @@ class timer {
std::thread thread;
void timer_thread() {
+ ceph_pthread_setname("ceph_timer");
std::unique_lock l(lock);
while (!suspended) {
auto now = TC::now();
@@ -155,7 +156,6 @@ class timer {
public:
timer() : suspended(false) {
thread = std::thread(&timer::timer_thread, this);
- set_thread_name(thread, "ceph_timer");
}
// Create a suspended timer, jobs will be executed in order when