enh: support enable/disable tfs config entries

This commit is contained in:
kailixu 2024-06-13 14:13:23 +08:00
parent 50d163f10d
commit caa2884bc9
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ static int32_t cfgSetTfsItem(SConfig *pCfg, const char *name, const char *value,
tstrncpy(cfg.dir, pItem->str, sizeof(cfg.dir));
cfg.level = level ? atoi(level) : 0;
cfg.primary = primary ? atoi(primary) : 1;
cfg.enable = enable ? atoi(enable) : 1;
cfg.enable = (enable && enable[0]) ? atoi(enable) : 1;
void *ret = taosArrayPush(pItem->array, &cfg);
if (ret == NULL) {
terrno = TSDB_CODE_OUT_OF_MEMORY;