mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix segfault in StorageBuffer when exception on server startup (#10609)
* fix segfault in StorageBuffer when exception on server startup * Trigger CI Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
This commit is contained in:
parent
a844e66e05
commit
a073cd6c79
@ -161,6 +161,8 @@ public:
|
||||
task_info->deactivate();
|
||||
}
|
||||
|
||||
operator bool() const { return task_info != nullptr; }
|
||||
|
||||
BackgroundSchedulePoolTaskInfo * operator->() { return task_info.get(); }
|
||||
const BackgroundSchedulePoolTaskInfo * operator->() const { return task_info.get(); }
|
||||
|
||||
|
@ -468,6 +468,9 @@ void StorageBuffer::startup()
|
||||
|
||||
void StorageBuffer::shutdown()
|
||||
{
|
||||
if (!flush_handle)
|
||||
return;
|
||||
|
||||
flush_handle->deactivate();
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user