mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Remove unused removePartFromZooKeeper()
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
(cherry picked from commit dbdb46e906
)
This commit is contained in:
parent
8b8215f91a
commit
8495deb7e3
@ -3488,22 +3488,6 @@ void StorageReplicatedMergeTree::getRemovePartFromZooKeeperOps(const String & pa
|
||||
ops.emplace_back(zkutil::makeRemoveRequest(part_path, -1));
|
||||
}
|
||||
|
||||
void StorageReplicatedMergeTree::removePartFromZooKeeper(const String & part_name)
|
||||
{
|
||||
auto zookeeper = getZooKeeper();
|
||||
String part_path = fs::path(replica_path) / "parts" / part_name;
|
||||
Coordination::Stat stat;
|
||||
|
||||
/// Part doesn't exist, nothing to remove
|
||||
if (!zookeeper->exists(part_path, &stat))
|
||||
return;
|
||||
|
||||
Coordination::Requests ops;
|
||||
|
||||
getRemovePartFromZooKeeperOps(part_name, ops, stat.numChildren > 0);
|
||||
zookeeper->multi(ops);
|
||||
}
|
||||
|
||||
void StorageReplicatedMergeTree::removePartAndEnqueueFetch(const String & part_name, bool storage_init)
|
||||
{
|
||||
auto zookeeper = getZooKeeper();
|
||||
|
@ -543,9 +543,6 @@ private:
|
||||
/// Set has_children to true for "old-style" parts (those with /columns and /checksums child znodes).
|
||||
void getRemovePartFromZooKeeperOps(const String & part_name, Coordination::Requests & ops, bool has_children);
|
||||
|
||||
/// Just removes part from ZooKeeper using previous method
|
||||
void removePartFromZooKeeper(const String & part_name);
|
||||
|
||||
/// Quickly removes big set of parts from ZooKeeper (using async multi queries)
|
||||
void removePartsFromZooKeeper(zkutil::ZooKeeperPtr & zookeeper, const Strings & part_names,
|
||||
NameSet * parts_should_be_retried = nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user