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 ad7c409 + 63c0649 commit 07555ceCopy full SHA for 07555ce
src/osd/PeeringState.cc
@@ -3033,9 +3033,7 @@ void PeeringState::proc_primary_info(
3033
ceph_assert(!is_primary());
3034
3035
update_history(oinfo.history);
3036
- 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) {
+ if (!info.stats.stats_invalid && info.stats.stats.sum.num_scrub_errors) {
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