mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 10:10:50 +00:00
CLICKHOUSE-3847 Del markLosrTeplicas()
This commit is contained in:
parent
32b6965cf2
commit
0be75baeda
@ -153,23 +153,6 @@ void ReplicatedMergeTreeCleanupThread::clearOldLogs()
|
||||
}
|
||||
|
||||
|
||||
void ReplicatedMergeTreeCleanupThread::markLostReplicas(std::unordered_map<String, UInt64> log_pointers_lost_replicas, String remove_border)
|
||||
{
|
||||
auto zookeeper = storage.getZooKeeper();
|
||||
|
||||
zkutil::Requests ops;
|
||||
|
||||
for (auto pair : log_pointers_lost_replicas)
|
||||
{
|
||||
if ("log-" + padIndex(pair.second) <= remove_border)
|
||||
ops.emplace_back(zkutil::makeCreateRequest(storage.zookeeper_path + "/replicas/" + pair.first + "/is_lost", "",
|
||||
zkutil::CreateMode::Persistent));
|
||||
}
|
||||
|
||||
auto code = zookeeper->multi(ops);
|
||||
}
|
||||
|
||||
|
||||
struct ReplicatedMergeTreeCleanupThread::NodeWithStat
|
||||
{
|
||||
String node;
|
||||
|
@ -39,10 +39,6 @@ private:
|
||||
/// Remove old records from ZooKeeper.
|
||||
void clearOldLogs();
|
||||
|
||||
/// We don't want to keep logs for inactive replicas.
|
||||
/// We mark these replicas as lost.
|
||||
void markLostReplicas(std::unordered_map<String, UInt64> log_pointers_lost_replicas, String remove_border);
|
||||
|
||||
/// Remove old block hashes from ZooKeeper. This is done by the leader replica.
|
||||
void clearOldBlocks();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user