mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Update StorageReplicatedMergeTree.cpp
This commit is contained in:
parent
ecc625692e
commit
34b30d80d4
@ -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
|
||||
/// 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.
|
||||
/// (The existence of child node does not allow to remove parent node).
|
||||
Coordination::Requests ops;
|
||||
Coordination::Responses responses;
|
||||
String drop_lock_path = zookeeper_path + "/dropped/lock";
|
||||
|
Loading…
Reference in New Issue
Block a user