Skip to content

Commit

Permalink
Miscellaneous #2482
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Aug 30, 2018
1 parent b05c62b commit fd5c419
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions dbms/src/Common/ThreadStatus.h
Expand Up @@ -172,15 +172,9 @@ class ThreadStatus : public std::enable_shared_from_this<ThreadStatus>
CurrentThreadScope() = default;
~CurrentThreadScope()
{
try
{
if (deleter)
deleter();
}
catch (...)
{
std::terminate();
}
if (deleter)
deleter();
/// std::terminate on exception: this is Ok.
}
};

Expand Down

0 comments on commit fd5c419

Please sign in to comment.