Fix tracer TSAN bug

pull/13535/head
Noah Eisen 7 years ago
parent d39d007e8f
commit 9ab3e5d919
  1. 3
      src/core/lib/debug/trace.cc

@ -76,7 +76,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) {
: name_(name) {
set_enabled(default_enabled);
TraceFlagList::Add(this);
}

Loading…
Cancel
Save