diff --git a/src/Interpreters/Context.cpp b/src/Interpreters/Context.cpp index 3f65fdb8de0..ce6b622d9ef 100644 --- a/src/Interpreters/Context.cpp +++ b/src/Interpreters/Context.cpp @@ -1973,8 +1973,7 @@ void Context::reloadConfig() const void Context::shutdown() { - auto disks = getDisksMap(); - for (auto & [disk_name, disk] : disks) + for (auto & [disk_name, disk] : getDisksMap()) { LOG_INFO(shared->log, "Shutdown disk {}", disk_name); disk->shutdown();