From 423c7e8a8668d2c7be9bc11e0992220919a04bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Rodriguez?= Date: Tue, 3 Mar 2020 09:32:58 +0100 Subject: [PATCH] Fix compilation issue in Clang --- dbms/src/Interpreters/ExternalDictionariesLoader.cpp | 1 + dbms/src/Interpreters/InterpreterSystemQuery.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/dbms/src/Interpreters/ExternalDictionariesLoader.cpp b/dbms/src/Interpreters/ExternalDictionariesLoader.cpp index c53537b80cd..02388028c73 100644 --- a/dbms/src/Interpreters/ExternalDictionariesLoader.cpp +++ b/dbms/src/Interpreters/ExternalDictionariesLoader.cpp @@ -1,5 +1,6 @@ #include #include +#include "config_core.h" #if USE_MYSQL # include diff --git a/dbms/src/Interpreters/InterpreterSystemQuery.cpp b/dbms/src/Interpreters/InterpreterSystemQuery.cpp index 7c5043154af..c6bca5bda2f 100644 --- a/dbms/src/Interpreters/InterpreterSystemQuery.cpp +++ b/dbms/src/Interpreters/InterpreterSystemQuery.cpp @@ -215,6 +215,7 @@ BlockIO InterpreterSystemQuery::execute() case Type::RELOAD_DICTIONARY: context.checkAccess(AccessType::RELOAD_DICTIONARY); system_context.getExternalDictionariesLoader().loadOrReload(query.target_dictionary); + ExternalDictionariesLoader::resetAll(); break; case Type::RELOAD_DICTIONARIES: context.checkAccess(AccessType::RELOAD_DICTIONARY); @@ -222,6 +223,7 @@ BlockIO InterpreterSystemQuery::execute() [&] () { system_context.getExternalDictionariesLoader().reloadAllTriedToLoad(); }, [&] () { system_context.getEmbeddedDictionaries().reload(); } ); + ExternalDictionariesLoader::resetAll(); break; case Type::RELOAD_EMBEDDED_DICTIONARIES: context.checkAccess(AccessType::RELOAD_DICTIONARY);