Revert "Sidestep multiple initialization issue of Tracers with Makefile"

pull/21678/head
Yash Tibrewal 5 years ago committed by GitHub
parent d4f191b647
commit 3941f9dbf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/core/lib/debug/trace.cc

@ -70,14 +70,6 @@ bool TraceFlagList::Set(const char* name, bool enabled) {
} }
void TraceFlagList::Add(TraceFlag* flag) { void TraceFlagList::Add(TraceFlag* flag) {
// TODO(yashykt): This loop is present to sidestep
// https://github.com/grpc/grpc/issues/21213. Remove it when either Makefile
// is fixed, or it's deprecated.
for (TraceFlag* t = root_tracer_; t != nullptr; t = t->next_tracer_) {
if (t == flag) {
return;
}
}
flag->next_tracer_ = root_tracer_; flag->next_tracer_ = root_tracer_;
root_tracer_ = flag; root_tracer_ = flag;
} }

Loading…
Cancel
Save