Skip to content

Commit

Permalink
store: avoid sessions of GC being affected by global variables (#24975)…
Browse files Browse the repository at this point in the history
… (#25609)
  • Loading branch information
ti-srebot authored Jun 22, 2021
1 parent ef3e4fd commit 76eae74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/gcworker/gc_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func createSession(store kv.Storage) session.Session {
}
// Disable privilege check for gc worker session.
privilege.BindPrivilegeManager(se, nil)
se.GetSessionVars().CommonGlobalLoaded = true
se.GetSessionVars().InRestrictedSQL = true
return se
}
Expand Down

0 comments on commit 76eae74

Please sign in to comment.