aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2017-11-28 23:52:05 -0800
committerGravatar GitHub <noreply@github.com>2017-11-28 23:52:05 -0800
commit7b0521ad9a44c07097847e215184242e64558711 (patch)
treed83057749a5c81d072e81dd14efca7b1961f0615 /src
parent56687c1a79633418e13bb424ee926c418a3614db (diff)
parent1479313244b4e58b3d60316650b6a1b0272364f4 (diff)
Merge pull request #13535 from ncteisen/fix-trace-tsan
Fix Tracer TSAN Bug
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/debug/trace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/debug/trace.cc b/src/core/lib/debug/trace.cc
index 4c63983bdc..a76c1afb4c 100644
--- a/src/core/lib/debug/trace.cc
+++ b/src/core/lib/debug/trace.cc
@@ -75,8 +75,8 @@ void TraceFlagList::LogAllTracers() {
}
// Flags register themselves on the list during construction
-TraceFlag::TraceFlag(bool default_enabled, const char* name)
- : name_(name), value_(default_enabled) {
+TraceFlag::TraceFlag(bool default_enabled, const char* name) : name_(name) {
+ set_enabled(default_enabled);
TraceFlagList::Add(this);
}