dbms: small improvement. [#METR-11044]

This commit is contained in:
Michael Kolupaev 2014-05-08 10:24:16 +04:00
parent 3323021865
commit cbf3719981

View File

@ -316,12 +316,6 @@ MergeTreeData::DataPartPtr MergeTreeDataMerger::mergeParts(const MergeTreeData::
new_data_part->size = to->marksCount(); new_data_part->size = to->marksCount();
new_data_part->modification_time = time(0); new_data_part->modification_time = time(0);
if (0 == to->marksCount())
{
throw Exception("All rows have been deleted while merging from " + parts.front()->name
+ " to " + parts.back()->name, ErrorCodes::LOGICAL_ERROR);
}
/// Переименовываем новый кусок, добавляем в набор и убираем исходные куски. /// Переименовываем новый кусок, добавляем в набор и убираем исходные куски.
auto replaced_parts = data.renameTempPartAndReplace(new_data_part); auto replaced_parts = data.renameTempPartAndReplace(new_data_part);