From 7b67636c385ac777994c5fbb679d1c9fb057898c Mon Sep 17 00:00:00 2001 From: Patrick LeBlanc Date: Wed, 4 Dec 2019 13:42:06 -0500 Subject: [PATCH] MCOL-3645 - Make ExeMgr destroy joblists in a different thread Fixed a compiler warning. --- exemgr/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exemgr/main.cpp b/exemgr/main.cpp index 5015dcc6f..7dbe7f4d4 100644 --- a/exemgr/main.cpp +++ b/exemgr/main.cpp @@ -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 scoped(jlMutex); const_cast(jl).reset(); // this happens second; does real destruction logging::Message::Args args;