Skip to content

Commit

Permalink
main: default enable prepare plan cache in test env
Browse files Browse the repository at this point in the history
  • Loading branch information
lysu committed Oct 26, 2018
1 parent 4924463 commit 9643cde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ func setGlobalVars() {
variable.SysVars[variable.TIDBMemQuotaQuery].Value = strconv.FormatInt(cfg.MemQuotaQuery, 10)
variable.SysVars["lower_case_table_names"].Value = strconv.Itoa(cfg.LowerCaseTableNames)

plannercore.SetPreparedPlanCache(cfg.PreparedPlanCache.Enabled)
// For CI environment we default enable prepare-plan-cache.
plannercore.SetPreparedPlanCache(config.CheckTableBeforeDrop || cfg.PreparedPlanCache.Enabled)
if plannercore.PreparedPlanCacheEnabled() {
plannercore.PreparedPlanCacheCapacity = cfg.PreparedPlanCache.Capacity
}
Expand Down

0 comments on commit 9643cde

Please sign in to comment.