Flush query metrics before joining thread #4612

This commit is contained in:
Alexey Milovidov 2019-03-06 22:57:54 +03:00
parent 47df38f7a0
commit f49562bff3

View File

@ -141,9 +141,11 @@ public:
state = state,
func = std::forward<Function>(func),
args = std::make_tuple(std::forward<Args>(args)...)]
{
{
DB::ThreadStatus thread_status;
std::apply(func, args);
}
state->set();
});
}