Skip to content

Commit

Permalink
config: show tidb_force_priority should be same as config (pingcap#9342)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackysp committed Feb 18, 2019
1 parent cf2924d commit b28d614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ func setGlobalVars() {
ddl.EnableSplitTableRegion = cfg.SplitTable
plannercore.AllowCartesianProduct = cfg.Performance.CrossJoin
privileges.SkipWithGrant = cfg.Security.SkipGrantTable
variable.ForcePriority = int32(mysql.Str2Priority(cfg.Performance.ForcePriority))

priority := mysql.Str2Priority(cfg.Performance.ForcePriority)
variable.ForcePriority = int32(priority)
variable.SysVars[variable.TiDBForcePriority].Value = mysql.Priority2Str[priority]

variable.SysVars[variable.TIDBMemQuotaQuery].Value = strconv.FormatInt(cfg.MemQuotaQuery, 10)
variable.SysVars["lower_case_table_names"].Value = strconv.Itoa(cfg.LowerCaseTableNames)
Expand Down

0 comments on commit b28d614

Please sign in to comment.