Skip to content

Commit

Permalink
Merge pull request ceph#60540 from ronen-fr/wip-rf-revert-57582
Browse files Browse the repository at this point in the history
osd: revert PR#57582

Reviewed-by: Samuel Just <[email protected]>
  • Loading branch information
ronen-fr authored Oct 31, 2024
2 parents ad7c409 + 63c0649 commit 07555ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/osd/PeeringState.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3033,9 +3033,7 @@ void PeeringState::proc_primary_info(
ceph_assert(!is_primary());

update_history(oinfo.history);
bool has_scrub_error = (!info.stats.stats_invalid && info.stats.stats.sum.num_scrub_errors);
info.stats = oinfo.stats;
if (has_scrub_error) {
if (!info.stats.stats_invalid && info.stats.stats.sum.num_scrub_errors) {
info.stats.stats.sum.num_scrub_errors = 0;
info.stats.stats.sum.num_shallow_scrub_errors = 0;
info.stats.stats.sum.num_deep_scrub_errors = 0;
Expand Down

0 comments on commit 07555ce

Please sign in to comment.