Remove unnecessary lock

pull/37459/head
Yash Tibrewal 4 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) GRPC_TRACE_LOG(rls_lb, INFO)
<< "[rlslb " << lb_policy_.get() << "] ChildPolicyWrapper=" << this << "[rlslb " << lb_policy_.get() << "] ChildPolicyWrapper=" << this
<< " [" << target_ << "]: shutdown"; << " [" << target_ << "]: shutdown";
{ is_shutdown_ = true;
MutexLock lock(&lb_policy_->mu_);
is_shutdown_ = true;
}
lb_policy_->child_policy_map_.erase(target_); lb_policy_->child_policy_map_.erase(target_);
if (child_policy_ != nullptr) { if (child_policy_ != nullptr) {
grpc_pollset_set_del_pollset_set(child_policy_->interested_parties(), grpc_pollset_set_del_pollset_set(child_policy_->interested_parties(),

Loading…
Cancel
Save