Skip to content

Commit

Permalink
config: fix trace-region-flow displayed incorrectly (#7993) (#8008)
Browse files Browse the repository at this point in the history
close #7917

Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>

Co-authored-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
3 people authored Apr 1, 2024
1 parent f11bf75 commit efb03ec
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ const (
defaultLeaderPriorityCheckInterval = time.Minute

defaultUseRegionStorage = true
defaultTraceRegionFlow = true
defaultFlowRoundByDigit = 3 // KB
maxTraceFlowRoundByDigit = 5 // 0.1 MB
defaultMaxResetTSGap = 24 * time.Hour
Expand Down Expand Up @@ -1183,9 +1182,6 @@ func (c *PDServerConfig) adjust(meta *configMetaData) error {
if !meta.IsDefined("dashboard-address") {
c.DashboardAddress = defaultDashboardAddress
}
if !meta.IsDefined("trace-region-flow") {
c.TraceRegionFlow = defaultTraceRegionFlow
}
if !meta.IsDefined("flow-round-by-digit") {
adjustInt(&c.FlowRoundByDigit, defaultFlowRoundByDigit)
}
Expand Down

0 comments on commit efb03ec

Please sign in to comment.