We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54e0865 + a24f3cf commit 597b5b3Copy full SHA for 597b5b3
src/osd/PeeringState.cc
@@ -3033,7 +3033,9 @@ void PeeringState::proc_primary_info(
3033
ceph_assert(!is_primary());
3034
3035
update_history(oinfo.history);
3036
- if (!info.stats.stats_invalid && info.stats.stats.sum.num_scrub_errors) {
+ bool has_scrub_error = (!info.stats.stats_invalid && info.stats.stats.sum.num_scrub_errors);
3037
+ info.stats = oinfo.stats;
3038
+ if (has_scrub_error) {
3039
info.stats.stats.sum.num_scrub_errors = 0;
3040
info.stats.stats.sum.num_shallow_scrub_errors = 0;
3041
info.stats.stats.sum.num_deep_scrub_errors = 0;
0 commit comments