No need to check for PG intersection if a history set is smaller than EC data part count

This commit is contained in:
Vitaliy Filippov
2024-07-18 19:29:05 +03:00
parent 8239ea2356
commit f8edfb4a71
+1 -1
View File
@@ -261,7 +261,7 @@ void osd_t::start_pg_peering(pg_t & pg)
}
}
}
if (found < (nonzero >= pg.pg_data_size ? pg.pg_data_size : 1))
if (nonzero >= pg.pg_data_size && found < pg.pg_data_size)
{
pg.state = PG_INCOMPLETE;
report_pg_state(pg);