From: Danny Al-Gaaf Date: Tue, 26 Feb 2013 15:24:46 +0000 (+0100) Subject: osd_types.cc: add parenthesis around expression X-Git-Tag: v0.59~95^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd5ce75b8786358260a5766574bba9a1740aea6b;p=ceph.git osd_types.cc: add parenthesis around expression Add parenthesis around expressions like (x && y & z). Signed-off-by: Danny Al-Gaaf --- diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index 7a059b7b176..219c1bfdec8 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -458,7 +458,7 @@ std::string pg_state_string(int state) oss << "peering+"; if (state & PG_STATE_REPAIR) oss << "repair+"; - if (state & PG_STATE_BACKFILL_WAIT && + if ((state & PG_STATE_BACKFILL_WAIT) && !(state &PG_STATE_BACKFILL)) oss << "wait_backfill+"; if (state & PG_STATE_BACKFILL)