Skip to content

Commit

Permalink
store: avoid sessions of GC being affected by global variables (pingc…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Jun 16, 2021
1 parent befa712 commit 0198ec4
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 @@ -235,6 +235,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 0198ec4

Please sign in to comment.