From 057c0efbfd3117b880cd1c260cd7e8a6353e763a Mon Sep 17 00:00:00 2001 From: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Date: Fri, 6 Oct 2023 01:30:29 +0300 Subject: [PATCH] Tablet throttler: fix race condition by removing goroutine call (#14179) Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --- go/vt/vttablet/tabletserver/throttle/throttler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vttablet/tabletserver/throttle/throttler.go b/go/vt/vttablet/tabletserver/throttle/throttler.go index 42c403a2295..9fdf8d4f8e2 100644 --- a/go/vt/vttablet/tabletserver/throttle/throttler.go +++ b/go/vt/vttablet/tabletserver/throttle/throttler.go @@ -682,7 +682,7 @@ func (throttler *Throttler) Operate(ctx context.Context) { { // sparse if throttler.IsOpen() { - go throttler.refreshMySQLInventory(ctx) + throttler.refreshMySQLInventory(ctx) } } case probes := <-throttler.mysqlClusterProbesChan: