From 6a963dc99c73cf781557b38d702a35a32c79085b 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 7c681c4b293..6558b052c9a 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: