From 9b4bae15324f40d83445bc6560ae38cde1c8ed23 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 29 Mar 2018 12:47:19 -0500 Subject: [PATCH] osd/OSD: make dout in _check_full conditional Signed-off-by: Mark Nelson --- src/osd/OSD.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 92c981a09ec8..9cb9ef1b2eb4 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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; } -- 2.47.3