提交 5600c358 编写于 作者: K Kirill Shvakov

check drop type

上级 0f509b9e
......@@ -3827,7 +3827,7 @@ void StorageReplicatedMergeTree::sendRequestToLeaderReplica(const ASTPtr & query
optimize->database = leader_address.database;
optimize->table = leader_address.table;
}
else if (auto * drop = typeid_cast<ASTDropQuery *>(new_query.get()))
else if (auto * drop = typeid_cast<ASTDropQuery *>(new_query.get()); drop->kind == ASTDropQuery::Kind::Truncate)
{
drop->database = leader_address.database;
drop->table = leader_address.table;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册