mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #43911 from nickitat/fix_tidy
Fix clang tidy errors introduced in #43834
This commit is contained in:
commit
44312e3e97
@ -40,11 +40,14 @@ TablesDependencyGraph::TablesDependencyGraph(TablesDependencyGraph && src) noexc
|
||||
|
||||
TablesDependencyGraph & TablesDependencyGraph::operator=(const TablesDependencyGraph & src)
|
||||
{
|
||||
nodes = src.nodes;
|
||||
nodes_by_database_and_table_names = src.nodes_by_database_and_table_names;
|
||||
nodes_by_uuid = src.nodes_by_uuid;
|
||||
levels_calculated = src.levels_calculated;
|
||||
nodes_sorted_by_level_lazy = src.nodes_sorted_by_level_lazy;
|
||||
if (&src != this)
|
||||
{
|
||||
nodes = src.nodes;
|
||||
nodes_by_database_and_table_names = src.nodes_by_database_and_table_names;
|
||||
nodes_by_uuid = src.nodes_by_uuid;
|
||||
levels_calculated = src.levels_calculated;
|
||||
nodes_sorted_by_level_lazy = src.nodes_sorted_by_level_lazy;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
@ -358,7 +361,7 @@ size_t TablesDependencyGraph::removeIsolatedTables()
|
||||
auto it = nodes.begin();
|
||||
while (it != nodes.end())
|
||||
{
|
||||
auto current = (it++)->get();
|
||||
auto * current = (it++)->get();
|
||||
if (current->dependencies.empty() && current->dependents.empty())
|
||||
{
|
||||
removeNode(current);
|
||||
|
Loading…
Reference in New Issue
Block a user