Skip to content

Commit

Permalink
commit-message: fix availableUKIndexList init
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardXiao committed Nov 9, 2021
1 parent 285e91c commit 37a03c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm/pkg/schema/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func (tr *Tracker) initDownStreamSQLModeAndParser(tctx *tcontext.Context) error
func GetDownStreamTi(ti *model.TableInfo, originTi *model.TableInfo) *DownstreamTableInfo {
var (
absoluteUKIndexInfo *model.IndexInfo
availableUKIndexList = make([]*model.IndexInfo, 0, len(ti.Indices))
availableUKIndexList = []*model.IndexInfo{}
hasPk = false
absoluteUKPosition = -1
)
Expand Down

0 comments on commit 37a03c8

Please sign in to comment.