diff --git a/store/gcworker/gc_worker.go b/store/gcworker/gc_worker.go index 5982f7e2dd0ca..58091fdc741a6 100644 --- a/store/gcworker/gc_worker.go +++ b/store/gcworker/gc_worker.go @@ -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 }