Fix compilation issue in Clang

This commit is contained in:
Clément Rodriguez 2020-03-03 09:32:58 +01:00
parent 3f82059536
commit 423c7e8a86
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#include <Interpreters/ExternalDictionariesLoader.h>
#include <Dictionaries/DictionaryFactory.h>
#include "config_core.h"
#if USE_MYSQL
# include <mysqlxx/PoolFactory.h>

View File

@ -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);