]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: abort early from logging function
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 7 Mar 2014 20:43:43 +0000 (12:43 -0800)
committerJohn Spray <john.spray@redhat.com>
Mon, 25 Aug 2014 00:33:57 +0000 (01:33 +0100)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_main.cc

index 31b6b54da4be10cb4876d2416d358a2badc17cbc..731b3ff04c823ed4467c1856fa9050a1283859a7 100644 (file)
@@ -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<RGWRequest *>::iterator iter;
       if (process->m_req_queue.empty()) {
         dout(20) << "RGWWQ: empty" << dendl;