From 37a03c8a064eb28d3c6c0f694e9345495e992ee0 Mon Sep 17 00:00:00 2001 From: WizardXiao Date: Tue, 9 Nov 2021 11:49:48 +0800 Subject: [PATCH] commit-message: fix availableUKIndexList init --- dm/pkg/schema/tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dm/pkg/schema/tracker.go b/dm/pkg/schema/tracker.go index a0a0f2424b5..f22e4a9ed83 100644 --- a/dm/pkg/schema/tracker.go +++ b/dm/pkg/schema/tracker.go @@ -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 )