Skip to content

Commit 6e1ccfd

Browse files
committed
add comments
Signed-off-by: lhy1024 <admin@liudos.us>
1 parent 8c0145d commit 6e1ccfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/mcs/scheduling/server/affinity/watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
// - Value: affinity.Group
4040
//
4141
// regionLabelPathPrefix:
42-
// - Key:
42+
// - Key: /pd/{cluster_id}/region_label/{rule_id}/affinity_group/"
4343
// - Value: labeler.LabelRule
4444
// - Filtered to only process rules with ID prefix "affinity_group/"
4545
type Watcher struct {

pkg/schedule/affinity/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type Manager struct {
7777
keyRanges map[string]GroupKeyRanges // {group_id} -> key ranges
7878
// labelRuleBuffer is a buffer used during etcd synchronization.
7979
// When synchronizing via etcd, LabelRule information may arrive earlier than group information.
80-
labelRuleBuffer map[string]*labeler.LabelRule
80+
labelRuleBuffer map[string]*labeler.LabelRule // {group_id} -> labelRule
8181
}
8282

8383
// NewManager creates a new affinity Manager.

0 commit comments

Comments
 (0)