]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/scrub: avoid using moved-from auth_n_errs wip-rf-72426movedref
authorRonen Friedman <rfriedma@redhat.com>
Wed, 6 Aug 2025 10:32:16 +0000 (05:32 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 3 Sep 2025 07:55:17 +0000 (10:55 +0300)
commit547d13f7f88652e5a96f2a432f5c53358cd07cf3
tree2897fdfbfa9fde5ed443fe84a1e868466f116de8
parent94bb77d6de369136f11c32ed82ec76119532bc94
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>
src/osd/scrubber/scrub_backend.cc