Skip to content

Commit

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

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

Co-authored-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
ti-chi-bot and rleungx committed Apr 16, 2024
1 parent 5dc66fd commit 327aaca
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 @@ -199,7 +199,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 @@ -1102,9 +1101,6 @@ func (c *PDServerConfig) adjust(meta *configutil.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") {
configutil.AdjustInt(&c.FlowRoundByDigit, defaultFlowRoundByDigit)
}
Expand Down

0 comments on commit 327aaca

Please sign in to comment.