mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Fix clang-18 build
This commit is contained in:
parent
2650a20628
commit
e13247b67e
@ -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,14 +882,14 @@ 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())
|
||||||
{
|
{
|
||||||
/// Checks if other part covers this one or this one covers the other
|
/// Checks if other part covers this one or this one covers the other
|
||||||
auto is_covered_or_covering = [&part] (const Part & other)
|
auto is_covered_or_covering = [&part] (const Part & other)
|
||||||
{
|
{
|
||||||
return other.description.info.contains(part.info) || part.info.contains(other.description.info);
|
return other.description.info.contains(part.info) || part.info.contains(other.description.info);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (is_covered_or_covering(*covering_it))
|
if (is_covered_or_covering(*covering_it))
|
||||||
|
Loading…
Reference in New Issue
Block a user