Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Aug 31, 2021
1 parent 1b8afc0 commit d914bf7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ddl/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,7 @@ func dropLabelRules(d *ddlCtx, schemaName, tableName string, partNames []string)
}
// delete batch rules
patch := label.NewRulePatch(nil, deleteRules)
err := infosync.UpdateLabelRules(context.TODO(), patch)
return err
return infosync.UpdateLabelRules(context.TODO(), patch)
}

// onDropTablePartition deletes old partition meta.
Expand Down

0 comments on commit d914bf7

Please sign in to comment.