From 8c088d7be4c680ab6c436b82e098021552dde77f Mon Sep 17 00:00:00 2001 From: okJiang <819421878@qq.com> Date: Wed, 22 Jan 2025 17:40:38 +0800 Subject: [PATCH] fix prefix Signed-off-by: okJiang <819421878@qq.com> --- pkg/utils/keypath/config.go | 2 +- pkg/utils/keypath/resource_group.go | 4 ++-- pkg/utils/keypath/rule.go | 6 +++--- pkg/utils/keypath/safe_point.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/utils/keypath/config.go b/pkg/utils/keypath/config.go index 3bfb020c1c2..93438264f19 100644 --- a/pkg/utils/keypath/config.go +++ b/pkg/utils/keypath/config.go @@ -23,7 +23,7 @@ func ConfigPath() string { // SchedulerConfigPathPrefix returns the path prefix to save the scheduler config. func SchedulerConfigPathPrefix() string { - return Prefix(SchedulerConfigPath("")) + return SchedulerConfigPath("") } // SchedulerConfigPath returns the path to save the scheduler config. diff --git a/pkg/utils/keypath/resource_group.go b/pkg/utils/keypath/resource_group.go index a9dd64dae35..144509cbffa 100644 --- a/pkg/utils/keypath/resource_group.go +++ b/pkg/utils/keypath/resource_group.go @@ -33,10 +33,10 @@ func ResourceGroupStatePath(groupName string) string { // ResourceGroupSettingPrefix returns the prefix of the resource group settings. func ResourceGroupSettingPrefix() string { - return Prefix(ResourceGroupSettingPath("")) + return ResourceGroupSettingPath("") } // ResourceGroupStatePrefix returns the prefix of the resource group states. func ResourceGroupStatePrefix() string { - return Prefix(ResourceGroupStatePath("")) + return ResourceGroupStatePath("") } diff --git a/pkg/utils/keypath/rule.go b/pkg/utils/keypath/rule.go index 66e8efe6e9a..8986439e7e3 100644 --- a/pkg/utils/keypath/rule.go +++ b/pkg/utils/keypath/rule.go @@ -20,7 +20,7 @@ import ( // RulesPathPrefix returns the path prefix to save the placement rules. func RulesPathPrefix() string { - return Prefix(RuleKeyPath("")) + return RuleKeyPath("") } // RuleKeyPath returns the path to save the placement rule with the given rule key. @@ -45,10 +45,10 @@ func RegionLabelKeyPath(ruleKey string) string { // RuleGroupPathPrefix returns the path prefix to save the placement rule groups. func RuleGroupPathPrefix() string { - return Prefix(RuleGroupIDPath("")) + return RuleGroupIDPath("") } // RegionLabelPathPrefix returns the path prefix to save the region label. func RegionLabelPathPrefix() string { - return Prefix(RegionLabelKeyPath("")) + return RegionLabelKeyPath("") } diff --git a/pkg/utils/keypath/safe_point.go b/pkg/utils/keypath/safe_point.go index 0aae75f6bc5..0782f5cddc4 100644 --- a/pkg/utils/keypath/safe_point.go +++ b/pkg/utils/keypath/safe_point.go @@ -25,7 +25,7 @@ func GCSafePointPath() string { // GCSafePointServicePrefixPath returns the GC safe point service key path prefix. func GCSafePointServicePrefixPath() string { - return Prefix(GCSafePointServicePath("")) + return GCSafePointServicePath("") } // GCSafePointServicePath returns the GC safe point service key path with the given service ID. @@ -46,7 +46,7 @@ func ServiceSafePointV2Path(keyspaceID uint32, serviceID string) string { // ServiceSafePointV2Prefix is the path prefix of all service safe point that belongs to a specific keyspace. // Can be used to retrieve keyspace's service safe point at once. func ServiceSafePointV2Prefix(keyspaceID uint32) string { - return Prefix(ServiceSafePointV2Path(keyspaceID, "")) + return ServiceSafePointV2Path(keyspaceID, "") } // GCSafePointV2Prefix is the path prefix to all gc safe point v2.