diff --git a/ddl/placement/common.go b/ddl/placement/common.go index 7b385daf508ae..6a17c13388d6a 100644 --- a/ddl/placement/common.go +++ b/ddl/placement/common.go @@ -31,16 +31,10 @@ func GroupID(id int64) string { } const ( - // RuleIndexDefault is the default index for a rule, check Rule.Index. - RuleIndexDefault int = iota - // RuleIndexDatabase is the index for a rule of database. - RuleIndexDatabase // RuleIndexTable is the index for a rule of table. - RuleIndexTable + RuleIndexTable = 40 // RuleIndexPartition is the index for a rule of partition. - RuleIndexPartition - // RuleIndexIndex is the index for a rule of index. - RuleIndexIndex + RuleIndexPartition = 80 ) const (