From: Danny Al-Gaaf Date: Tue, 26 Feb 2013 15:13:09 +0000 (+0100) Subject: PGMonitor.cc: add parenthesis around expression X-Git-Tag: v0.59~95^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=83eadd894c14736a789394d5dab34ed930dacdbc;p=ceph.git PGMonitor.cc: add parenthesis around expression Add parenthesis around expressions like (x && y & z). Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 14f3e4ba9d70..c793092bb623 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1310,7 +1310,7 @@ void PGMonitor::get_health(list >& summary, for (hash_map::const_iterator p = pg_map.pg_stat.begin(); p != pg_map.pg_stat.end(); ++p) { - if (p->second.state & (PG_STATE_STALE | + if ((p->second.state & (PG_STATE_STALE | PG_STATE_DOWN | PG_STATE_DEGRADED | PG_STATE_INCONSISTENT | @@ -1322,7 +1322,7 @@ void PGMonitor::get_health(list >& summary, PG_STATE_INCOMPLETE | PG_STATE_BACKFILL_WAIT | PG_STATE_BACKFILL | - PG_STATE_BACKFILL_TOOFULL) && + PG_STATE_BACKFILL_TOOFULL)) && stuck_pgs.count(p->first) == 0) { ostringstream ss; ss << "pg " << p->first << " is " << pg_state_string(p->second.state);