Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonss committed Jan 19, 2023
1 parent a642b7c commit b5a74c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions ddl/reorg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 0 additions & 4 deletions infoschema/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5a74c3

Please sign in to comment.