Update ActiveDataPartSet.cpp

This commit is contained in:
tavplubix 2021-06-01 20:03:52 +03:00 committed by GitHub
parent 7d7c5638a5
commit a4ea5783d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,8 @@ bool ActiveDataPartSet::add(const String & name, Strings * out_replaced_parts, P
{
if (!part_info.isDisjoint(it->first))
{
LOG_ERROR(log, "Part {} intersects previous part {}. It is a bug.", name, it->first.getPartName());
if (log)
LOG_ERROR(log, "Part {} intersects previous part {}. It is a bug.", name, it->first.getPartName());
assert(false);
}
++it;
@ -65,7 +66,8 @@ bool ActiveDataPartSet::add(const String & name, Strings * out_replaced_parts, P
if (it != part_info_to_name.end() && !part_info.isDisjoint(it->first))
{
LOG_ERROR(log, "Part {} intersects next part {}. It is a bug.", name, it->first.getPartName());
if (log)
LOG_ERROR(log, "Part {} intersects next part {}. It is a bug.", name, it->first.getPartName());
assert(false);
}