mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Update Context.cpp
This commit is contained in:
parent
1913466da4
commit
7275caf5bb
@ -566,7 +566,8 @@ struct ContextSharedPart : boost::noncopyable
|
||||
std::lock_guard lock(mutex);
|
||||
delete_async_insert_queue = std::move(async_insert_queue);
|
||||
}
|
||||
delete_async_insert_queue->flushAndShutdown();
|
||||
if (delete_async_insert_queue)
|
||||
delete_async_insert_queue->flushAndShutdown();
|
||||
|
||||
/// Stop periodic reloading of the configuration files.
|
||||
/// This must be done first because otherwise the reloading may pass a changed config
|
||||
|
Loading…
Reference in New Issue
Block a user