Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 committed Jun 21, 2022
1 parent 3fb0153 commit 6ba334b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3506,7 +3506,8 @@ func (s *session) EncodeSessionStates(ctx context.Context, sctx sessionctx.Conte
for _, sv := range variable.GetSysVars() {
switch {
case sv.Hidden, sv.HasNoneScope(), sv.HasInstanceScope(), !sv.HasSessionScope():
// Hidden, none-scoped, and instance-scoped variables cannot be modified.
// Hidden and none-scoped variables cannot be modified.
// Instance-scoped variables don't need to be encoded.
// Noop variables should also be migrated even if they are noop.
continue
case sv.ReadOnly:
Expand Down

0 comments on commit 6ba334b

Please sign in to comment.