change default value

This commit is contained in:
yihaoDeng 2023-02-16 19:31:46 +08:00
parent 1f643f301d
commit 60e148d524
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ static int32_t taosUpdateServerCfg(SConfig *pCfg) {
pItem = cfgGetItem(tsCfg, "numOfRpcThreads");
if (pItem != NULL && pItem->stype == CFG_STYPE_DEFAULT) {
tsNumOfRpcThreads = numOfCores / 2;
tsNumOfRpcThreads = TRANGE(tsNumOfRpcThreads, 1, TSDB_MAX_RPC_THREADS);
tsNumOfRpcThreads = TRANGE(tsNumOfRpcThreads, 2, 4);
pItem->i32 = tsNumOfRpcThreads;
pItem->stype = stype;
}