From bb8774bf21940db7bfa7ee4013a6bf822eb534e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B6=85?= Date: Thu, 16 Dec 2021 12:44:36 +0800 Subject: [PATCH] *: Modify placement rule index to reserve some indexes for future work (#30737) --- ddl/placement/common.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 (