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 <xie.xingguo@zte.com.cn>
This commit is contained in:
xie xingguo 2017-09-30 09:59:53 +08:00
parent 1aef50a1ed
commit 6a990115c2

View File

@ -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();
}