]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: avoid using moved-from auth_n_errs
authorRonen Friedman <rfriedma@redhat.com>
Wed, 6 Aug 2025 10:32:16 +0000 (05:32 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 8 Aug 2025 09:56:02 +0000 (04:56 -0500)
commitfca1ac3b47443eb2b74954badb7363fdfeead428
tree3c7948cabee4efa29ca4995bc0b231641adf464e
parentf7988396a7bfd8e7e7cb88f522488d6ecd590c2d
osd/scrub: avoid using moved-from auth_n_errs

... in ScrubBackend::inconsistents()

Existing code was using a reference to a moved-from
`auth_and_obj_errs_t` object, which is undefined behavior.

The change here was tested locally. No noticeable performance
degradation was observed, and the code is now more robust.

Fixes: https://tracker.ceph.com/issues/72426
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 60950a659200eda8fda120899e7f967bdc7e27da)
src/osd/scrubber/scrub_backend.cc