Fix marking only first OSD from non-majority group as corrupted during scrub

Note: Could be tested with 5 replicas - 3 good and 2 corrupted if we had OSD unit tests
This commit is contained in:
Vitaliy Filippov
2026-05-18 01:17:56 +03:00
parent dcdabbc1ec
commit 1fd2819724
+1 -1
View File
@@ -505,7 +505,7 @@ void osd_t::scrub_check_results(osd_op_t *cur_op)
{
unknown = true;
}
if (votes[role] > 0 && votes[role] < votes[best])
if (eq_to[role] != -1 && votes[eq_to[role]] > 0 && votes[eq_to[role]] < votes[best])
{
printf(
"[PG %u/%u] Object %jx:%jx v%ju copy on OSD %ju doesn't match %d other copies%s\n",