mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
removed unnecessary check for thread's joinability
This commit is contained in:
parent
70516f2f45
commit
815cc8de9b
@ -44,8 +44,6 @@ void TraceCollector::tryClosePipe()
|
||||
TraceCollector::~TraceCollector()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (thread.joinable())
|
||||
{
|
||||
/** Sends TraceCollector stop message
|
||||
*
|
||||
@ -57,9 +55,6 @@ TraceCollector::~TraceCollector()
|
||||
writeChar(true, out);
|
||||
out.next();
|
||||
}
|
||||
else
|
||||
LOG_ERROR(&Poco::Logger::get("TraceCollector"), "TraceCollector thread is malformed and cannot be joined");
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
tryLogCurrentException("TraceCollector");
|
||||
@ -69,6 +64,8 @@ TraceCollector::~TraceCollector()
|
||||
|
||||
if (thread.joinable())
|
||||
thread.join();
|
||||
else
|
||||
LOG_ERROR(&Poco::Logger::get("TraceCollector"), "TraceCollector thread is malformed and cannot be joined");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user