From 1d07ef2ff366c011f8314fe2406fbf9f64ff10a6 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 7 Mar 2014 12:43:43 -0800 Subject: [PATCH] rgw: abort early from logging function Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index 31b6b54da4b..731b3ff04c8 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -205,6 +205,9 @@ protected: perfcounter->inc(l_rgw_qactive, -1); } void _dump_queue() { + if (!g_conf->subsys.should_gather(ceph_subsys_rgw, 20)) { + return; + } deque::iterator iter; if (process->m_req_queue.empty()) { dout(20) << "RGWWQ: empty" << dendl; -- 2.47.3