From: Kefu Chai Date: Tue, 12 Jun 2018 11:06:21 +0000 (+0800) Subject: osd/PG: unset history_les_bound if local-les is used X-Git-Tag: v14.0.1~1111^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a7279bd55359d8499ba519e464164c37fc7740fd;p=ceph.git osd/PG: unset history_les_bound if local-les is used 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 --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 926c09f1cced5..d2a8220fd327d 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1140,6 +1140,7 @@ map::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; } }