mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
rename method for clarity
This commit is contained in:
parent
4ee581117b
commit
b60a2a90fa
@ -195,7 +195,7 @@ void ReplicatedMergeTreeQueue::updateTimesInZooKeeper(
|
||||
}
|
||||
|
||||
|
||||
void ReplicatedMergeTreeQueue::remove(zkutil::ZooKeeperPtr zookeeper, LogEntryPtr & entry)
|
||||
void ReplicatedMergeTreeQueue::removeProcessedEntry(zkutil::ZooKeeperPtr zookeeper, LogEntryPtr & entry)
|
||||
{
|
||||
auto code = zookeeper->tryRemove(replica_path + "/queue/" + entry->znode_name);
|
||||
|
||||
@ -891,7 +891,7 @@ bool ReplicatedMergeTreeQueue::processEntry(
|
||||
try
|
||||
{
|
||||
if (func(entry))
|
||||
remove(get_zookeeper(), entry);
|
||||
removeProcessedEntry(get_zookeeper(), entry);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
@ -139,7 +139,7 @@ private:
|
||||
std::lock_guard<std::mutex> & target_state_lock,
|
||||
std::lock_guard<std::mutex> & queue_lock);
|
||||
|
||||
void remove(zkutil::ZooKeeperPtr zookeeper, LogEntryPtr & entry);
|
||||
void removeProcessedEntry(zkutil::ZooKeeperPtr zookeeper, LogEntryPtr & entry);
|
||||
|
||||
/** Can I now try this action. If not, you need to leave it in the queue and try another one.
|
||||
* Called under the queue_mutex.
|
||||
|
Loading…
Reference in New Issue
Block a user