From 98c33de4e3e6e8858788c87516d321275bd73e52 Mon Sep 17 00:00:00 2001 From: VadimPE Date: Thu, 2 Aug 2018 12:03:38 +0300 Subject: [PATCH] CLICKHOUSE-3714 --- dbms/src/Storages/StorageMaterializedView.cpp | 2 +- dbms/src/Storages/StorageReplicatedMergeTree.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Storages/StorageMaterializedView.cpp b/dbms/src/Storages/StorageMaterializedView.cpp index 1c547df5e08..b5fb6eeb3b2 100644 --- a/dbms/src/Storages/StorageMaterializedView.cpp +++ b/dbms/src/Storages/StorageMaterializedView.cpp @@ -303,7 +303,7 @@ bool StorageMaterializedView::checkPartitionCanBeDroppedDetachReplace(const ASTP if (!target_table) return true; - return target_table->checkPartitionCanBeDroppedAttachReplace(partition); + return target_table->checkPartitionCanBeDroppedDetachReplace(partition); } void registerStorageMaterializedView(StorageFactory & factory) diff --git a/dbms/src/Storages/StorageReplicatedMergeTree.cpp b/dbms/src/Storages/StorageReplicatedMergeTree.cpp index a1015479938..4f4fb5f516b 100644 --- a/dbms/src/Storages/StorageReplicatedMergeTree.cpp +++ b/dbms/src/Storages/StorageReplicatedMergeTree.cpp @@ -3363,7 +3363,7 @@ bool StorageReplicatedMergeTree::checkPartitionCanBeDroppedDetachReplace(const A for (const auto & part : parts_to_remove) { - context.checkPartitionCanBeDroppedAttachReplace(database_name, table_name, part->getTotalColumnsSize().data_compressed); + context.checkPartitionCanBeDroppedDetachReplace(database_name, table_name, part->getTotalColumnsSize().data_compressed); } return true; }