Commit 547d13f
committed
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 <[email protected]>1 parent 94bb77d commit 547d13f
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
| 1022 | + | |
| 1023 | + | |
1027 | 1024 | | |
1028 | 1025 | | |
1029 | 1026 | | |
1030 | 1027 | | |
1031 | 1028 | | |
1032 | | - | |
1033 | | - | |
| 1029 | + | |
| 1030 | + | |
1034 | 1031 | | |
1035 | 1032 | | |
1036 | 1033 | | |
| |||
1058 | 1055 | | |
1059 | 1056 | | |
1060 | 1057 | | |
1061 | | - | |
1062 | | - | |
| 1058 | + | |
1063 | 1059 | | |
1064 | 1060 | | |
1065 | 1061 | | |
| |||
0 commit comments