Skip to content

Commit

Permalink
sessionctx: mark tidb_enable_auto_analyze_priority_queue as deprecated (
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored Jun 19, 2024
1 parent c12bf3f commit c455119
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sessionctx/variable/sysvar.go
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,10 @@ var defaultSysVars = []*SysVar{
EnableAutoAnalyzePriorityQueue.Store(TiDBOptOn(val))
return nil
},
Validation: func(s *SessionVars, normalizedValue string, originalValue string, scope ScopeFlag) (string, error) {
s.StmtCtx.AppendWarning(ErrWarnDeprecatedSyntaxSimpleMsg.FastGen("tidb_enable_auto_analyze_priority_queue will be removed in the future and TiDB will always use priority queue to execute auto analyze."))
return normalizedValue, nil
},
},
{Scope: ScopeGlobal, Name: TiDBGOGCTunerThreshold, Value: strconv.FormatFloat(DefTiDBGOGCTunerThreshold, 'f', -1, 64), Type: TypeFloat, MinValue: 0, MaxValue: math.MaxUint64,
GetGlobal: func(_ context.Context, s *SessionVars) (string, error) {
Expand Down

0 comments on commit c455119

Please sign in to comment.