[fix](comments) modify comments of setting global variables #12514

Co-authored-by: wuhangze <wuhangze@jd.com>
This commit is contained in:
Henry2SS
2022-09-13 19:13:57 +08:00
committed by GitHub
parent 9e49f68663
commit 6a3385437b

View File

@ -269,8 +269,7 @@ public class VariableMgr {
}
private static void setGlobalVarAndWriteEditLog(VarContext ctx, String name, String value) throws DdlException {
// set global variable should not affect variables of current session.
// global variable will only make effect when connecting in.
// global variable will make effect when is set immediately.
wlock.lock();
try {
setValue(ctx.getObj(), ctx.getField(), value);