diff --git a/ddl/reorg.go b/ddl/reorg.go index 113126e8149ee..0d740225fdb33 100644 --- a/ddl/reorg.go +++ b/ddl/reorg.go @@ -301,8 +301,7 @@ func updateBackfillProgress(w *worker, reorgInfo *reorgInfo, tblInfo *model.Tabl if progress > 1 { progress = 1 } - // TODO: change back to Debug - logutil.BgLogger().Info("[ddl] update progress", + logutil.BgLogger().Debug("[ddl] update progress", zap.Float64("progress", progress), zap.Int64("addedRowCount", addedRowCount), zap.Int64("totalCount", totalCount)) diff --git a/infoschema/builder.go b/infoschema/builder.go index 0ade382ac41a4..4c7c8247e06a3 100644 --- a/infoschema/builder.go +++ b/infoschema/builder.go @@ -297,16 +297,12 @@ func (b *Builder) applyReorganizePartition(m *meta.Meta, diff *model.SchemaDiff) if err != nil { return nil, errors.Trace(err) } - // Minimum allocation, one partition is reorganized into 1 or more new ones - //tblIDs := make([]int64, 0, 1+len(diff.AffectedOpts)) for _, opt := range diff.AffectedOpts { if opt.OldTableID != 0 { b.deleteBundle(b.is, opt.OldTableID) - //tblIDs = append(tblIDs, opt.OldTableID) } if opt.TableID != 0 { b.markTableBundleShouldUpdate(opt.TableID) - //tblIDs = append(tblIDs, opt.TableID) } } return tblIDs, nil