mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Enabling -Wshadow [#CLICKHOUSE-2]
This commit is contained in:
parent
5f21f1ba7d
commit
f7796df158
@ -32,10 +32,10 @@ std::optional<std::string> ZooKeeperNodeCache::get(const std::string & path)
|
||||
if (!zookeeper)
|
||||
throw DB::Exception("Could not get znode: `" + path + "'. ZooKeeper not configured.", DB::ErrorCodes::NO_ZOOKEEPER);
|
||||
|
||||
for (const auto & path : invalidated_paths)
|
||||
for (const auto & invalidated_path : invalidated_paths)
|
||||
{
|
||||
nonexistent_nodes.erase(path);
|
||||
node_cache.erase(path);
|
||||
nonexistent_nodes.erase(invalidated_path);
|
||||
node_cache.erase(invalidated_path);
|
||||
}
|
||||
|
||||
if (nonexistent_nodes.count(path))
|
||||
|
Loading…
Reference in New Issue
Block a user