Update src/Interpreters/Context.cpp

This commit is contained in:
Alexander Kuzmenkov 2020-10-26 19:09:53 +03:00 committed by GitHub
parent 44162c28c0
commit 79a6be08d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2029,6 +2029,8 @@ void Context::reloadConfig() const
void Context::shutdown()
{
// Disk selector might not be initialized if there was some error during
// its initialization. Don't try to initialize it again on shutdown.
if (shared->merge_tree_disk_selector)
{
for (auto & [disk_name, disk] : getDisksMap())