From 399f22cb18735322e747cda1daf027352d8d62ca Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 9 Jun 2009 15:22:18 -0700 Subject: [PATCH] osd: don't clobber pg_stats.reported when repairing stats --- src/osd/ReplicatedPG.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 900c336d96797..bfa795c7ce108 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -3226,7 +3226,10 @@ int ReplicatedPG::_scrub(ScrubMap& scrubmap, int& errors, int& fixed) if (repair) { fixed++; - info.stats = stat; + info.stats.num_objects = stat.num_objects; + info.stats.num_object_clones = stat.num_object_clones; + info.stats.num_bytes = stat.num_bytes; + info.stats.num_kb = stat.num_kb; update_stats(); } } -- 2.39.5