From 6a6ec36d635ec49d156f37e9c91d39620c6dc02f Mon Sep 17 00:00:00 2001 From: Vitaly Baranov Date: Thu, 23 Jan 2020 16:35:12 +0300 Subject: [PATCH] Fix race when executing SYSTEM RELOAD ALL DICTIONARIES. --- dbms/src/Interpreters/ExternalLoader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dbms/src/Interpreters/ExternalLoader.cpp b/dbms/src/Interpreters/ExternalLoader.cpp index e9cfe602437..a96f64c110f 100644 --- a/dbms/src/Interpreters/ExternalLoader.cpp +++ b/dbms/src/Interpreters/ExternalLoader.cpp @@ -540,6 +540,7 @@ public: Strings getAllTriedToLoadNames() const { + std::lock_guard lock{mutex}; Strings names; for (auto & [name, info] : infos) if (info.triedToLoad())