mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
Fixed style check
This commit is contained in:
parent
bd1d54d689
commit
6ae20d6282
@ -94,7 +94,7 @@ void BackgroundSchedulePoolTaskInfo::execute()
|
|||||||
UInt64 milliseconds = watch.elapsedMilliseconds();
|
UInt64 milliseconds = watch.elapsedMilliseconds();
|
||||||
|
|
||||||
/// If the task is executed longer than specified time, it will be logged.
|
/// If the task is executed longer than specified time, it will be logged.
|
||||||
static const int32_t slow_execution_threshold_ms = 200;
|
static constexpr UInt64 slow_execution_threshold_ms = 200;
|
||||||
|
|
||||||
if (milliseconds >= slow_execution_threshold_ms)
|
if (milliseconds >= slow_execution_threshold_ms)
|
||||||
LOG_TRACE(&Poco::Logger::get(log_name), "Execution took {} ms.", milliseconds);
|
LOG_TRACE(&Poco::Logger::get(log_name), "Execution took {} ms.", milliseconds);
|
||||||
@ -268,7 +268,8 @@ void BackgroundSchedulePool::threadFunction()
|
|||||||
std::unique_lock<std::mutex> tasks_lock(tasks_mutex);
|
std::unique_lock<std::mutex> tasks_lock(tasks_mutex);
|
||||||
|
|
||||||
{
|
{
|
||||||
tasks_cond_var.wait(tasks_lock, [&](){
|
tasks_cond_var.wait(tasks_lock, [&]()
|
||||||
|
{
|
||||||
return shutdown || !tasks.empty();
|
return shutdown || !tasks.empty();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user