From: Leonid Usov Date: Mon, 22 Jan 2024 12:37:44 +0000 (+0200) Subject: common/Timer.cc: improve debug messages from the timer_thread X-Git-Tag: v19.1.0~203^2~19 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fb548f5b829fc3b40665b88cfb391a7291fbec47;p=ceph.git common/Timer.cc: improve debug messages from the timer_thread Signed-off-by: Leonid Usov (cherry picked from commit c1c884212f45b387ba54215b6f12545572066ce2) --- diff --git a/src/common/Timer.cc b/src/common/Timer.cc index 2a3277a27659b..a7c35fb8ef52c 100644 --- a/src/common/Timer.cc +++ b/src/common/Timer.cc @@ -102,6 +102,7 @@ void CommonSafeTimer::timer_thread() } #endif + ldout(cct, 20) << "timer_thread going to execute and remove the top of a schedule sized " << schedule.size() << dendl; Context *callback = p->second; events.erase(callback); schedule.erase(p); @@ -120,10 +121,11 @@ void CommonSafeTimer::timer_thread() if (!safe_callbacks && stopping) break; - ldout(cct,20) << "timer_thread going to sleep" << dendl; if (schedule.empty()) { + ldout(cct, 20) << "timer_thread going to sleep with an empty schedule" << dendl; cond.wait(l); } else { + ldout(cct, 20) << "timer_thread going to sleep with a schedule size " << schedule.size() << dendl; auto when = schedule.begin()->first; cond.wait_until(l, when); }