mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
dbms: small improvement. [#METR-11044]
This commit is contained in:
parent
3323021865
commit
cbf3719981
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user