From ffaaf93c49ac0f65abb3147519581f83ae1c7380 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 2 Jul 2019 20:24:22 +0300 Subject: [PATCH] Compatibility with old compiler (gcc-7) --- dbms/src/Interpreters/ExternalLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }