Skip to content

Commit ec7fbcf

Browse files
committed
Remove unnecessary lock
1 parent 421e739 commit ec7fbcf

File tree

1 file changed

+1
-4
lines changed
  • src/core/load_balancing/rls

1 file changed

+1
-4
lines changed

src/core/load_balancing/rls/rls.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,10 +829,7 @@ void RlsLb::ChildPolicyWrapper::Orphaned() {
829829
GRPC_TRACE_LOG(rls_lb, INFO)
830830
<< "[rlslb " << lb_policy_.get() << "] ChildPolicyWrapper=" << this
831831
<< " [" << target_ << "]: shutdown";
832-
{
833-
MutexLock lock(&lb_policy_->mu_);
834-
is_shutdown_ = true;
835-
}
832+
is_shutdown_ = true;
836833
lb_policy_->child_policy_map_.erase(target_);
837834
if (child_policy_ != nullptr) {
838835
grpc_pollset_set_del_pollset_set(child_policy_->interested_parties(),

0 commit comments

Comments
 (0)