Skip to content

Commit

Permalink
variable: avoid generating stack for warning (#52782)
Browse files Browse the repository at this point in the history
close #49291
  • Loading branch information
jackysp authored Apr 26, 2024
1 parent 4cd8e94 commit 9036169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sessionctx/variable/sysvar.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ var defaultSysVars = []*SysVar{
{Scope: ScopeGlobal, Name: TiDBEnableTelemetry, Value: BoolToOnOff(DefTiDBEnableTelemetry), Type: TypeBool, GetGlobal: func(_ context.Context, s *SessionVars) (string, error) {
return "OFF", nil
}, SetGlobal: func(_ context.Context, s *SessionVars, val string) error {
s.StmtCtx.AppendWarning(ErrWarnDeprecatedSyntaxSimpleMsg.GenWithStack("tidb_enable_telemetry is deprecated since Telemetry has been removed, this variable is 'OFF' always."))
s.StmtCtx.AppendWarning(ErrWarnDeprecatedSyntaxSimpleMsg.FastGen("tidb_enable_telemetry is deprecated since Telemetry has been removed, this variable is 'OFF' always."))
return nil
}},
{Scope: ScopeGlobal, Name: TiDBEnableHistoricalStats, Value: On, Type: TypeBool, Depended: true},
Expand Down

0 comments on commit 9036169

Please sign in to comment.