From 41984a685a459ebd3e990d40ef58d581c1e4a884 Mon Sep 17 00:00:00 2001 From: Shiori Date: Tue, 22 Feb 2022 16:29:40 +0800 Subject: [PATCH] fix --- pkg/manager/member/tiflash_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manager/member/tiflash_util.go b/pkg/manager/member/tiflash_util.go index 403a8395d0..a6559c1004 100644 --- a/pkg/manager/member/tiflash_util.go +++ b/pkg/manager/member/tiflash_util.go @@ -137,7 +137,7 @@ func getTiFlashConfigV2(tc *v1alpha1.TidbCluster) *v1alpha1.TiFlashConfigWraper { // storage // check "path" to be compatible with old version - if common.Get("path") == nil && common.Get("storage") == nil { + if common.Get("path") == nil && common.Get("storage.main.dir") == nil { paths := []string{} for i := range tc.Spec.TiFlash.StorageClaims { paths = append(paths, fmt.Sprintf("/data%d/db", i))