diff --git a/dbms/src/Interpreters/ExternalLoader.cpp b/dbms/src/Interpreters/ExternalLoader.cpp index 018565e0a2c..c34193f71e4 100644 --- a/dbms/src/Interpreters/ExternalLoader.cpp +++ b/dbms/src/Interpreters/ExternalLoader.cpp @@ -403,8 +403,8 @@ public: bool hasCurrentlyLoadedObjects() const { std::lock_guard lock{mutex}; - for (auto & [name, info] : infos) - if (info.loaded()) + for (auto & name_info : infos) + if (name_info.second.loaded()) return true; return false; }