Update src/Storages/MergeTree/ActiveDataPartSet.cpp

Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
This commit is contained in:
alesapin 2023-10-15 20:17:55 +02:00 committed by GitHub
parent 13ca296497
commit bdafe17e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ bool ActiveDataPartSet::add(const MergeTreePartInfo & part_info, const String &
AddPartOutcome outcome = addImpl(part_info, name, out_replaced_parts, &out_reason);
if (outcome == AddPartOutcome::HasIntersectingPart)
{
chassert(out_reason.empty());
chassert(!out_reason.empty());
throw Exception(ErrorCodes::LOGICAL_ERROR, fmt::runtime(out_reason));
}