From: Xiaoxi Chen Date: Thu, 17 Sep 2015 05:45:34 +0000 (+0800) Subject: Fix debug message in osd::is_healthy X-Git-Tag: v10.0.0~108^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e0cf25f6c0162bface1bb9c8beb2f26e6c3a5bbc;p=ceph.git Fix debug message in osd::is_healthy Display the actual vaule of osd_heartbeat_min_healthy_ratio instead of 1/3 (default value). Signed-off-by: Xiaoxi Chen --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 09e4c570d15a..e2ab4a40152b 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4513,7 +4513,8 @@ bool OSD::_is_healthy() ++num; } if ((float)up < (float)num * cct->_conf->osd_heartbeat_min_healthy_ratio) { - dout(1) << "is_healthy false -- only " << up << "/" << num << " up peers (less than 1/3)" << dendl; + dout(1) << "is_healthy false -- only " << up << "/" << num << " up peers (less than " + << int(cct->_conf->osd_heartbeat_min_healthy_ratio * 100.0) << "%)" << dendl; return false; } }