mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
Flush query metrics before joining thread #4612
This commit is contained in:
parent
47df38f7a0
commit
f49562bff3
@ -141,9 +141,11 @@ public:
|
|||||||
state = state,
|
state = state,
|
||||||
func = std::forward<Function>(func),
|
func = std::forward<Function>(func),
|
||||||
args = std::make_tuple(std::forward<Args>(args)...)]
|
args = std::make_tuple(std::forward<Args>(args)...)]
|
||||||
|
{
|
||||||
{
|
{
|
||||||
DB::ThreadStatus thread_status;
|
DB::ThreadStatus thread_status;
|
||||||
std::apply(func, args);
|
std::apply(func, args);
|
||||||
|
}
|
||||||
state->set();
|
state->set();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user