Skip to content

Commit

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

close tikv#7917

Signed-off-by: Ryan Leung <[email protected]>
Signed-off-by: JmPotato <[email protected]>

Co-authored-by: Ryan Leung <[email protected]>
Co-authored-by: JmPotato <[email protected]>
  • 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.