numOfCores should large than 2

This commit is contained in:
Shengliang Guan 2022-02-23 17:49:24 +08:00
parent a74188f456
commit 7cc1d78ec6
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ static int32_t dmnAddDnodeCfg(SConfig *pCfg) {
if (cfgAddTimezone(pCfg, "timezone", "") != 0) return -1;
if (cfgAddLocale(pCfg, "locale", "") != 0) return -1;
if (cfgAddCharset(pCfg, "charset", "") != 0) return -1;
if (cfgAddInt32(pCfg, "numOfCores", 1, 1, 100000) != 0) return -1;
if (cfgAddInt32(pCfg, "numOfCores", 2, 1, 100000) != 0) return -1;
if (cfgAddInt32(pCfg, "numOfCommitThreads", 4, 1, 1000) != 0) return -1;
if (cfgAddBool(pCfg, "telemetryReporting", 0) != 0) return -1;
if (cfgAddBool(pCfg, "enableCoreFile", 0) != 0) return -1;