From 1e900861346c12fe538e8fa10570d880cd64744c Mon Sep 17 00:00:00 2001 From: Shuning Chen Date: Mon, 11 Dec 2023 14:34:16 +0800 Subject: [PATCH] resource_control: fix data race in controller Signed-off-by: Shuning Chen --- client/resource_group/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/resource_group/controller/controller.go b/client/resource_group/controller/controller.go index 56d9ef9bd1b..bb969814baa 100755 --- a/client/resource_group/controller/controller.go +++ b/client/resource_group/controller/controller.go @@ -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(