Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <[email protected]>
  • Loading branch information
nolouch committed Jan 8, 2025
1 parent 1204952 commit bffe5e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ func (c *PDServerConfig) adjust(meta *configutil.ConfigMetaData) error {

func migrateConfigurationFromFile(meta *configutil.ConfigMetaData) error {
oldName, newName := "trace-region-flow", "flow-round-by-digit"
defineOld, _ := meta.IsDefined(oldName), meta.IsDefined(newName)
defineOld := meta.IsDefined(oldName)
switch {
case defineOld:
return errors.Errorf("config item %s and %s(deprecated) are conflict", newName, oldName)
Expand Down
1 change: 0 additions & 1 deletion tools/pd-ctl/tests/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ func (suite *configTestSuite) checkConfig(cluster *pdTests.TestCluster) {
args = []string{"-u", pdAddr, "config", "set", "trace-region-flow", "false"}
_, err = tests.ExecuteCommand(cmd, args...)
re.NoError(err)
re.False(svr.GetPDServerConfig().TraceRegionFlow)

origin := svr.GetPDServerConfig().FlowRoundByDigit
args = []string{"-u", pdAddr, "config", "set", "flow-round-by-digit", "10"}
Expand Down

0 comments on commit bffe5e4

Please sign in to comment.