From 8ff864cd8bf178635fd3a9a9dfc3604f8fc62264 Mon Sep 17 00:00:00 2001 From: Kruglov Pavel <48961922+Avogar@users.noreply.github.com> Date: Mon, 24 Apr 2023 19:12:50 +0200 Subject: [PATCH] Fix --- src/Storages/StorageURL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/StorageURL.cpp b/src/Storages/StorageURL.cpp index f0401c70501..965a36d12f9 100644 --- a/src/Storages/StorageURL.cpp +++ b/src/Storages/StorageURL.cpp @@ -662,7 +662,7 @@ Pipe IStorageURLBase::read( } else { - iterator_wrapper = std::make_shared([&, done = false]() mutable + iterator_wrapper = std::make_shared([uri, max_addresses, done = false]() mutable { if (done) return StorageURLSource::FailoverOptions{};