Update StorageReplicatedMergeTree.cpp

This commit is contained in:
alexey-milovidov 2021-04-21 16:01:54 +03:00 committed by GitHub
parent ecc625692e
commit 34b30d80d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -807,6 +807,7 @@ void StorageReplicatedMergeTree::dropReplica(zkutil::ZooKeeperPtr zookeeper, con
/// we remove it on table creation if there is /dropped node. Creating thread may remove /dropped node created by /// we remove it on table creation if there is /dropped node. Creating thread may remove /dropped node created by
/// removing thread, and it causes race condition if removing thread is not finished yet. /// removing thread, and it causes race condition if removing thread is not finished yet.
/// To avoid this we also create ephemeral child before starting recursive removal. /// To avoid this we also create ephemeral child before starting recursive removal.
/// (The existence of child node does not allow to remove parent node).
Coordination::Requests ops; Coordination::Requests ops;
Coordination::Responses responses; Coordination::Responses responses;
String drop_lock_path = zookeeper_path + "/dropped/lock"; String drop_lock_path = zookeeper_path + "/dropped/lock";