fix wait in drop

This commit is contained in:
Anton Popov 2022-11-23 04:21:27 +00:00
parent 16a3eb9bfc
commit 44b4345996

View File

@ -869,8 +869,6 @@ zkutil::ZooKeeperPtr StorageReplicatedMergeTree::getZooKeeperIfTableShutDown() c
void StorageReplicatedMergeTree::drop() void StorageReplicatedMergeTree::drop()
{ {
waitForOutdatedPartsToBeLoaded();
/// There is also the case when user has configured ClickHouse to wrong ZooKeeper cluster /// There is also the case when user has configured ClickHouse to wrong ZooKeeper cluster
/// or metadata of staled replica were removed manually, /// or metadata of staled replica were removed manually,
/// in this case, has_metadata_in_zookeeper = false, and we also permit to drop the table. /// in this case, has_metadata_in_zookeeper = false, and we also permit to drop the table.