fix: data race, which caused tests execution to fail (#15313)

This commit is contained in:
LHHDZ 2022-07-16 22:57:55 +08:00 committed by GitHub
parent 2bc7ca2d34
commit e68e76e143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}