Skip to content

Commit 1ec0277

Browse files
author
Alexey Katsman
authored
Merge pull request ClickHouse#78174 from ianton-ru/dynamic_clusters_autodicovery_fix
Fix reference in lambda callback
2 parents 39830d1 + 6af7fd7 commit 1ec0277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Interpreters/ClusterDiscovery.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ void ClusterDiscovery::initialUpdate()
481481
zk->createAncestors(path->zk_path);
482482
zk->createIfNotExists(path->zk_path, "");
483483

484-
auto watch_callback = [&path](auto) { path->need_update = true; };
484+
auto watch_callback = [path](auto) { path->need_update = true; };
485485
zk->getChildrenWatch(path->zk_path, nullptr, watch_callback);
486486
}
487487

0 commit comments

Comments
 (0)