Skip to content

Commit

Permalink
sessionctx: not use meaningless constants (#45116)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei committed Jul 3, 2023
1 parent 89a5e37 commit 2d2b8d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sessionctx/variable/sysvar.go
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ var defaultSysVars = []*SysVar{
return s, nil
},
},
{Scope: ScopeGlobal | ScopeSession, Name: TiDBEnablePlanReplayerCapture, Value: BoolToOnOff(true), Type: TypeBool,
{Scope: ScopeGlobal | ScopeSession, Name: TiDBEnablePlanReplayerCapture, Value: BoolToOnOff(DefTiDBEnablePlanReplayerCapture), Type: TypeBool,
SetSession: func(s *SessionVars, val string) error {
s.EnablePlanReplayerCapture = TiDBOptOn(val)
return nil
Expand Down
2 changes: 1 addition & 1 deletion sessionctx/variable/tidb_vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ const (
DefTiDBEnableExternalTSRead = false
DefTiDBEnableReusechunk = true
DefTiDBUseAlloc = false
DefTiDBEnablePlanReplayerCapture = false
DefTiDBEnablePlanReplayerCapture = true
DefTiDBIndexMergeIntersectionConcurrency = ConcurrencyUnset
DefTiDBTTLJobEnable = true
DefTiDBTTLScanBatchSize = 500
Expand Down

0 comments on commit 2d2b8d6

Please sign in to comment.