mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Fixed tests in Sandbox [#CLICKHOUSE-2]
This commit is contained in:
parent
9d5c9b602d
commit
c34d36bf35
@ -73,10 +73,19 @@ void ThreadStatus::initPerformanceCounters()
|
||||
|
||||
*last_rusage = RUsageCounters::current(query_start_time_nanoseconds);
|
||||
|
||||
if (TaskStatsInfoGetter::checkPermissions())
|
||||
try
|
||||
{
|
||||
taskstats_getter = std::make_unique<TaskStatsInfoGetter>();
|
||||
*last_taskstats = TasksStatsCounters::current();
|
||||
if (TaskStatsInfoGetter::checkPermissions())
|
||||
{
|
||||
if (!taskstats_getter)
|
||||
taskstats_getter = std::make_unique<TaskStatsInfoGetter>();
|
||||
*last_taskstats = TasksStatsCounters::current();
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
taskstats_getter.reset();
|
||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user