From baf0fe956c1b1de06a8c60e571ad70a21dc6c65b Mon Sep 17 00:00:00 2001 From: tclinken Date: Thu, 26 Mar 2020 09:55:03 -0700 Subject: [PATCH] Take trace mutex in setLogGroup --- flow/Trace.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flow/Trace.cpp b/flow/Trace.cpp index 00053493f8..82e2d7f662 100644 --- a/flow/Trace.cpp +++ b/flow/Trace.cpp @@ -550,7 +550,10 @@ public: } } - void setLogGroup(const std::string& logGroup) { this->logGroup = logGroup; } + void setLogGroup(const std::string& logGroup) { + MutexHolder holder(mutex); + this->logGroup = logGroup; + } Future pingWriterThread() { auto ping = new WriterThread::Ping;