]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: clear pin_stats_invalid bit properly on scrub-repair completion 18052/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 30 Sep 2017 01:59:53 +0000 (09:59 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 30 Sep 2017 01:59:53 +0000 (09:59 +0800)
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>
src/osd/PrimaryLogPG.cc

index d89eef9bad763076d0e13ee9a23ef87f39ab6043..45edb24f3e6dbc267f12ffbdf3a2a7a70487ee50 100644 (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();
     }