From: xie xingguo Date: Sat, 30 Sep 2017 01:59:53 +0000 (+0800) Subject: osd/PrimaryLogPG: clear pin_stats_invalid bit properly on scrub-repair completion X-Git-Tag: v13.0.1~685^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18052%2Fhead;p=ceph.git osd/PrimaryLogPG: clear pin_stats_invalid bit properly on scrub-repair completion We have done audit of stats and the numbers should be all ok by then. Actually the pin_stats_invalid bit is never set true, so forgetting to clear pin_stats_invalid here generally does harm. Also we could simply kill the pin_stats_invalid bit instead but let's not bother with that complexity either. Signed-off-by: xie xingguo --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index d89eef9bad7..45edb24f3e6 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -13604,6 +13604,7 @@ void PrimaryLogPG::_scrub_finish() info.stats.omap_stats_invalid = false; info.stats.hitset_stats_invalid = false; info.stats.hitset_bytes_stats_invalid = false; + info.stats.pin_stats_invalid = false; publish_stats_to_osd(); share_pg_info(); }