From 594bcf10073e8596613f6d58d86a2143caf61cd4 Mon Sep 17 00:00:00 2001 From: xiao-77 Date: Tue, 26 Nov 2024 10:41:40 +0800 Subject: [PATCH] Fix alter local var and alter str var (add miss commit). --- source/common/src/tglobal.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 40aff508f5..01966c0536 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -2152,6 +2152,15 @@ static int32_t taosCfgSetOption(OptionNameAndVar *pOptions, int32_t optionSize, uInfo("%s set from %f to %f", optName, *pVar, flag); *pVar = flag; } break; + case CFG_DTYPE_STRING: + case CFG_DTYPE_DIR: + case CFG_DTYPE_LOCALE: + case CFG_DTYPE_CHARSET: + case CFG_DTYPE_TIMEZONE: { + char *pVar = pOptions[d].optionVar; + tstrncpy(pVar, pItem->str, strlen(pItem->str)); + uInfo("%s set to %s", optName, pVar); + } break; default: code = TSDB_CODE_INVALID_CFG; break;