提交 3ddb729e 编写于 作者: F fastio

fix metadata leak when drop Replicated*MergeTree

上级 8601b2f3
......@@ -750,7 +750,7 @@ void StorageReplicatedMergeTree::drop()
{
/// Table can be shut down, restarting thread is not active
/// and calling StorageReplicatedMergeTree::getZooKeeper() won't suffice.
auto zookeeper = global_context.getZooKeeper();
auto zookeeper = getZooKeeper();
/// If probably there is metadata in ZooKeeper, we don't allow to drop the table.
if (!zookeeper)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册