From f8edfb4a717afe0a5be8fef7e2d5a1af41e647c8 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 18 Jul 2024 19:28:57 +0300 Subject: [PATCH] No need to check for PG intersection if a history set is smaller than EC data part count --- src/osd/osd_peering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/osd_peering.cpp b/src/osd/osd_peering.cpp index 4f722d81..f739ff6d 100644 --- a/src/osd/osd_peering.cpp +++ b/src/osd/osd_peering.cpp @@ -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);