]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix debug message in osd::is_healthy 6226/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Thu, 17 Sep 2015 05:45:34 +0000 (13:45 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Mon, 12 Oct 2015 02:41:49 +0000 (10:41 +0800)
Display the actual vaule of osd_heartbeat_min_healthy_ratio instead
of 1/3 (default value).

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/osd/OSD.cc

index 09e4c570d15a7d13ecc8f755b040b2361a1c7c32..e2ab4a40152beb1fd8f96f129fc8c8f593183ba9 100644 (file)
@@ -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;
     }
   }