Skip to content

Commit

Permalink
*: Modify placement rule index to reserve some indexes for future work (
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwangchao authored Dec 16, 2021
1 parent 6eb11b3 commit bb8774b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ddl/placement/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit bb8774b

Please sign in to comment.