1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

MCOL-3645 - Make ExeMgr destroy joblists in a different thread

Fixed a compiler warning.
This commit is contained in:
Patrick LeBlanc
2019-12-04 13:42:06 -05:00
parent 222f963ed7
commit 7b67636c38

View File

@@ -1088,7 +1088,7 @@ new_plan:
// msgLog is global scope, and passed by copy, so, unclear
// what the warning is about.
destructing++;
std::thread bgdtor([jl, &jlMutex, &jlCleanupDone, stmtID, &li, msgLog, &destructing] {
std::thread bgdtor([jl, &jlMutex, &jlCleanupDone, stmtID, &li, &destructing] {
std::unique_lock<std::mutex> scoped(jlMutex);
const_cast<joblist::SJLP &>(jl).reset(); // this happens second; does real destruction
logging::Message::Args args;