Skip to content

Commit 6af7fd7

Browse files
committed
Fix reference in lambda callback
1 parent 09f82bb commit 6af7fd7

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
@@ -480,7 +480,7 @@ void ClusterDiscovery::initialUpdate()
480480
zk->createAncestors(path->zk_path);
481481
zk->createIfNotExists(path->zk_path, "");
482482

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

0 commit comments

Comments
 (0)