]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: remove weird BACKFILL state hack
authorSage Weil <sage@redhat.com>
Thu, 21 Sep 2017 14:28:08 +0000 (10:28 -0400)
committerSage Weil <sage@redhat.com>
Thu, 21 Sep 2017 18:21:41 +0000 (14:21 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.cc

index 7f10196aeb61ebdcc8efa4eae1643d962b5956ae..2b89e5dc26137f9c83a2291e0c0f5e137a769acf 100644 (file)
@@ -827,8 +827,7 @@ std::string pg_state_string(int state)
     oss << "peering+";
   if (state & PG_STATE_REPAIR)
     oss << "repair+";
-  if ((state & PG_STATE_BACKFILL_WAIT) &&
-      !(state &PG_STATE_BACKFILL))
+  if (state & PG_STATE_BACKFILL_WAIT)
     oss << "backfill_wait+";
   if (state & PG_STATE_BACKFILL)
     oss << "backfilling+";