Fix alter local var and alter str var (add miss commit).

This commit is contained in:
xiao-77 2024-11-26 10:41:40 +08:00
parent 7ff032ad04
commit 594bcf1007
1 changed files with 9 additions and 0 deletions

View File

@ -2152,6 +2152,15 @@ static int32_t taosCfgSetOption(OptionNameAndVar *pOptions, int32_t optionSize,
uInfo("%s set from %f to %f", optName, *pVar, flag); uInfo("%s set from %f to %f", optName, *pVar, flag);
*pVar = flag; *pVar = flag;
} break; } 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: default:
code = TSDB_CODE_INVALID_CFG; code = TSDB_CODE_INVALID_CFG;
break; break;