Update src/Storages/MergeTree/MergeTreePartInfo.cpp

Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
This commit is contained in:
alesapin 2023-11-02 12:01:51 +01:00 committed by GitHub
parent 81b93ef12b
commit 800f2f097c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,7 +315,7 @@ bool MergeTreePartInfo::areAllBlockNumbersCovered(const MergeTreePartInfo & bloc
for (const auto & candidate : candidates)
{
if (candidate.min_block - current_right_block > 1)
if (current_right_block + 1 != candidate.min_block)
return false;
current_right_block = candidate.max_block;