From: huanwen ren Date: Fri, 29 Apr 2016 02:53:14 +0000 (+0800) Subject: osd/osdmonitor: _have_pending_crush of return value should be bool X-Git-Tag: v11.0.0~800^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7800%2Fhead;p=ceph.git osd/osdmonitor: _have_pending_crush of return value should be bool have_pending_crush of return value should be bool, fix it Signed-off-by: huanwen ren --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 42c58a0111a..95fb11fc049 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -83,7 +83,7 @@ OSDMonitor::OSDMonitor(CephContext *cct, Monitor *mn, Paxos *p, const string& se bool OSDMonitor::_have_pending_crush() { - return pending_inc.crush.length(); + return pending_inc.crush.length() > 0; } CrushWrapper &OSDMonitor::_get_stable_crush()