]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: unset history_les_bound if local-les is used 22524/head
authorKefu Chai <kchai@redhat.com>
Tue, 12 Jun 2018 11:06:21 +0000 (19:06 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 12 Jun 2018 11:09:24 +0000 (19:09 +0800)
reset history_les_bound if we set max_last_epoch_started_found with
shard's local-les. otherwise it'd be misleading to show
"peering_blocked_by_history_les_bound" in the output of "pg query" if a
pg is stuck in incomplete and/or peering, and the best shard is not
chosen based on the history.les .

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/PG.cc

index 926c09f1cced5ed3ecedd01a92ef0ce5fc6faf59..d2a8220fd327d627b3b0674543f28b8dded4f218 100644 (file)
@@ -1140,6 +1140,7 @@ map<pg_shard_t, pg_info_t>::const_iterator PG::find_best_info(
     }
     if (!i->second.is_incomplete() &&
        max_last_epoch_started_found < i->second.last_epoch_started) {
+      *history_les_bound = false;
       max_last_epoch_started_found = i->second.last_epoch_started;
     }
   }