Merge branch 'merge_tree_part_block_number' of git://github.com/ahrefs/ClickHouse into merge_21760

This commit is contained in:
Anton Popov 2021-03-23 16:47:14 +03:00
commit 8a56d04714

View File

@ -1389,7 +1389,7 @@ void StorageMergeTree::movePartitionToTable(const StoragePtr & dest_table, const
DataPartsLock lock(mutex);
for (MutableDataPartPtr & part : dst_parts)
dest_table_storage->renameTempPartAndReplace(part, &increment, &transaction, lock);
dest_table_storage->renameTempPartAndReplace(part, &dest_table_storage->increment, &transaction, lock);
removePartsFromWorkingSet(src_parts, true, lock);
transaction.commit(&lock);