Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KanShiori committed Feb 22, 2022
1 parent 798ac18 commit 41984a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/member/tiflash_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 41984a6

Please sign in to comment.