]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSD: make dout in _check_full conditional 20298/head
authorMark Nelson <mnelson@redhat.com>
Thu, 29 Mar 2018 17:47:19 +0000 (12:47 -0500)
committerMark Nelson <mnelson@redhat.com>
Thu, 29 Mar 2018 17:47:19 +0000 (12:47 -0500)
Signed-off-by: Mark Nelson <mnelson@redhat.com>
src/osd/OSD.cc

index 92c981a09ec8400a007e75f7ec6e8a9b4907b17c..9cb9ef1b2eb449a8dc5526722a11e93609bfd079 100644 (file)
@@ -874,7 +874,8 @@ bool OSDService::_check_full(DoutPrefixProvider *dpp, s_names type) const
              << dendl;
     return true;
   }
-  ldpp_dout(dpp, 10) << __func__ << " current usage is " << cur_ratio << dendl;
+  if (cur_state >= type)
+    ldpp_dout(dpp, 10) << __func__ << " current usage is " << cur_ratio << dendl;
 
   return cur_state >= type;
 }