Skip to content

Commit

Permalink
resource_control: fix data race in controller
Browse files Browse the repository at this point in the history
Signed-off-by: Shuning Chen <[email protected]>
  • Loading branch information
Shuning Chen authored and Shuning Chen committed Dec 11, 2023
1 parent 00674d0 commit 1e90086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/resource_group/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ func (gc *groupCostController) onRequestWait(
*gc.mu.storeCounter[info.StoreID()] = *gc.mu.globalCounter
gc.mu.Unlock()

return delta, penalty, waitDuration, gc.meta.Priority, nil
return delta, penalty, waitDuration, gc.getMeta().GetPriority(), nil
}

func (gc *groupCostController) onResponse(
Expand Down

0 comments on commit 1e90086

Please sign in to comment.