Remove unnecessary lock

pull/37459/head
Yash Tibrewal 3 months ago
parent 421e739024
commit ec7fbcf2d6
  1. 5
      src/core/load_balancing/rls/rls.cc

@ -829,10 +829,7 @@ void RlsLb::ChildPolicyWrapper::Orphaned() {
GRPC_TRACE_LOG(rls_lb, INFO)
<< "[rlslb " << lb_policy_.get() << "] ChildPolicyWrapper=" << this
<< " [" << target_ << "]: shutdown";
{
MutexLock lock(&lb_policy_->mu_);
is_shutdown_ = true;
}
is_shutdown_ = true;
lb_policy_->child_policy_map_.erase(target_);
if (child_policy_ != nullptr) {
grpc_pollset_set_del_pollset_set(child_policy_->interested_parties(),

Loading…
Cancel
Save