Skip to content

Commit

Permalink
sessionctx: fix wrong skipInit for tidb_enable_paging (#31162)
Browse files Browse the repository at this point in the history
ref #30578
  • Loading branch information
you06 authored Dec 30, 2021
1 parent a06e9f2 commit 99ad750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sessionctx/variable/sysvar.go
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ var defaultSysVars = []*SysVar{
}, GetSession: func(s *SessionVars) (string, error) {
return "0", nil
}},
{Scope: ScopeGlobal | ScopeSession, Name: TiDBEnablePaging, Value: Off, Type: TypeBool, Hidden: true, skipInit: true, SetSession: func(s *SessionVars, val string) error {
{Scope: ScopeGlobal | ScopeSession, Name: TiDBEnablePaging, Value: Off, Type: TypeBool, Hidden: true, SetSession: func(s *SessionVars, val string) error {
s.EnablePaging = TiDBOptOn(val)
return nil
}},
Expand Down

0 comments on commit 99ad750

Please sign in to comment.