use chassert in MergeTreeDeduplicationLog to have better log info

This commit is contained in:
Han Fei 2023-05-15 18:51:16 +02:00
parent b9c185af44
commit 4137a5e058

View File

@ -227,7 +227,7 @@ std::pair<MergeTreePartInfo, bool> MergeTreeDeduplicationLog::addPart(const std:
return std::make_pair(info, false);
}
assert(current_writer != nullptr);
chassert(current_writer != nullptr);
/// Create new record
MergeTreeDeduplicationLogRecord record;
@ -257,7 +257,7 @@ void MergeTreeDeduplicationLog::dropPart(const MergeTreePartInfo & drop_part_inf
if (deduplication_window == 0)
return;
assert(current_writer != nullptr);
chassert(current_writer != nullptr);
for (auto itr = deduplication_map.begin(); itr != deduplication_map.end(); /* no increment here, we erasing from map */)
{