Skip to content

Commit

Permalink
Properly set shutdown_called in StorageKafka::shutdown()
Browse files Browse the repository at this point in the history
Fixes: ClickHouse#42777
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
  • Loading branch information
azat committed Dec 27, 2023
1 parent 123d63e commit 51d4f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Storages/Kafka/StorageKafka.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ void StorageKafka::startup()

void StorageKafka::shutdown(bool)
{
shutdown_called = true;

for (auto & task : tasks)
{
// Interrupt streaming thread
Expand Down

0 comments on commit 51d4f58

Please sign in to comment.