From e68e76e143df5486d685f367b4b18f7333ec6307 Mon Sep 17 00:00:00 2001 From: LHHDZ Date: Sat, 16 Jul 2022 22:57:55 +0800 Subject: [PATCH] fix: data race, which caused tests execution to fail (#15313) --- cmd/server-main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/server-main.go b/cmd/server-main.go index 1170a1328..47f4dee5e 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -590,7 +590,8 @@ func serverMain(ctx *cli.Context) { initBackgroundTransition(GlobalContext, newObject) go func() { - if err := globalTierConfigMgr.Init(GlobalContext, newObject); err != nil { + err := globalTierConfigMgr.Init(GlobalContext, newObject) + if err != nil { logger.LogIf(GlobalContext, err) }