Skip to content

Commit 4148636

Browse files
Merge pull request ClickHouse#74187 from azat/keeper-fix-shutdown
Fix keeper shutdown in case of initialization failed
2 parents fcaa293 + d9b9bc6 commit 4148636

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Coordination/Changelog.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,14 @@ Changelog::~Changelog()
23992399
try
24002400
{
24012401
flush();
2402+
}
2403+
catch (...)
2404+
{
2405+
tryLogCurrentException(__PRETTY_FUNCTION__);
2406+
}
2407+
2408+
try
2409+
{
24022410
shutdown();
24032411
}
24042412
catch (...)

0 commit comments

Comments
 (0)