[td-255] change the min worker threads

This commit is contained in:
Haojun Liao 2020-07-28 11:54:59 +08:00
parent 9d2d061c15
commit 228ea8ae9c
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ static taos_qset readQset;
int32_t dnodeInitVnodeRead() {
readQset = taosOpenQset();
readPool.min = (tsNumOfCores * 2) / 3;
readPool.min = tsNumOfCores;
readPool.max = tsNumOfCores * tsNumOfThreadsPerCore;
if (readPool.max <= readPool.min * 2) readPool.max = 2 * readPool.min;
readPool.readWorker = (SReadWorker *)calloc(sizeof(SReadWorker), readPool.max);