From 29f00372c5bb0afc19dfdbf408555b7263350a6f Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Tue, 3 Aug 2021 23:33:06 -0600 Subject: [PATCH] variable: update out of date comment (#26872) --- sessionctx/variable/tidb_vars.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sessionctx/variable/tidb_vars.go b/sessionctx/variable/tidb_vars.go index b0f80668e2..d72d00a139 100644 --- a/sessionctx/variable/tidb_vars.go +++ b/sessionctx/variable/tidb_vars.go @@ -26,13 +26,7 @@ import ( 1. Add a new variable name with comment in this file. 2. Add the default value of the new variable in this file. - 3. Add SysVar instance in 'defaultSysVars' slice with the default value. - 4. Add a field in `SessionVars`. - 5. Update the `NewSessionVars` function to set the field to its default value. - 6. Update the `variable.SetSessionSystemVar` function to use the new value when SET statement is executed. - 7. If it is a global variable, add it in `session.loadCommonGlobalVarsSQL`. - 8. Update ValidateSetSystemVar if the variable's value need to be validated. - 9. Use this variable to control the behavior in code. + 3. Add SysVar instance in 'defaultSysVars' slice. */ // TiDB system variable names that only in session scope.