cleanup partition after moving it

This commit is contained in:
Guillaume Tassery 2019-09-16 10:56:30 +02:00
parent 8920f36d96
commit a47f0b1a60

View File

@ -1234,6 +1234,9 @@ void StorageMergeTree::movePartitionTo(const StoragePtr & dest_table, const ASTP
removePartsFromWorkingSet(src_parts, true, data_parts_lock);
}
clearOldMutations(true);
clearOldPartsFromFilesystem();
PartLog::addNewParts(global_context, dst_parts, watch.elapsed());
}
catch (...)