Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <[email protected]>
  • Loading branch information
lance6716 committed Nov 25, 2024
1 parent 79efff2 commit 3665cb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ddl/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,9 @@ func doReorgWorkForCreateIndex(w *worker, d *ddlCtx, t *meta.Meta, job *model.Jo
store, ok2 := d.store.(tikv.Storage)
if ok2 {
pdLeaderAddr = store.GetRegionCache().PDClient().GetLeaderAddr()
} else {
}
// happens in unit tests
if !ok2 || pdLeaderAddr == "mockpd" {
pdLeaderAddr = config.GetGlobalConfig().Path
}
}
Expand Down

0 comments on commit 3665cb7

Please sign in to comment.