*: Modify placement rule index to reserve some indexes for future work (#30737)

This commit is contained in:
王超
2021-12-16 12:44:36 +08:00
committed by GitHub
parent 6eb11b300f
commit bb8774bf21

View File

@ -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 (