From 9d11d4dd449a5bf3507e090e32243657bec7d0d5 Mon Sep 17 00:00:00 2001 From: Pavel Kovalenko Date: Fri, 4 Sep 2020 21:45:22 +0300 Subject: [PATCH] Variable inline. --- src/Interpreters/Context.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();