From e0cf25f6c0162bface1bb9c8beb2f26e6c3a5bbc Mon Sep 17 00:00:00 2001 From: Xiaoxi Chen Date: Thu, 17 Sep 2015 13:45:34 +0800 Subject: [PATCH] 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 --- 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 09e4c570d15a7..e2ab4a40152be 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; } } -- 2.39.5