Fix clang-18 build

This commit is contained in:
Alexander Gololobov 2024-09-13 16:50:43 +02:00
parent 2650a20628
commit e13247b67e

View File

@ -869,7 +869,7 @@ void InOrderCoordinator<mode>::doHandleInitialAllRangesAnnouncement(InitialAllRa
/// To get rid of duplicates /// To get rid of duplicates
for (auto && part: announcement.description) for (auto && part: announcement.description)
{ {
auto the_same_it = all_parts_to_read.find(Part{.description = part}); auto the_same_it = all_parts_to_read.find(Part{.description = part, .replicas = {}});
/// We have the same part - add the info about presence on the corresponding replica to it /// We have the same part - add the info about presence on the corresponding replica to it
if (the_same_it != all_parts_to_read.end()) if (the_same_it != all_parts_to_read.end())
@ -882,7 +882,7 @@ void InOrderCoordinator<mode>::doHandleInitialAllRangesAnnouncement(InitialAllRa
continue; continue;
/// Look for the first part >= current /// Look for the first part >= current
auto covering_it = all_parts_to_read.lower_bound(Part{.description = part}); auto covering_it = all_parts_to_read.lower_bound(Part{.description = part, .replicas = {}});
if (covering_it != all_parts_to_read.end()) if (covering_it != all_parts_to_read.end())
{ {