Merge pull request #25395 from taosdata/fix/limitIdxMaxThread3
limit index bg thread
This commit is contained in:
commit
206280e529
|
@ -25,8 +25,10 @@
|
|||
#include "tref.h"
|
||||
#include "tsched.h"
|
||||
|
||||
#define INDEX_NUM_OF_THREADS 5
|
||||
#define INDEX_QUEUE_SIZE 200
|
||||
#define INDEX_NUM_OF_THREADS 5
|
||||
#define INDEX_MAX_NUM_OF_THREADS 10
|
||||
|
||||
#define INDEX_QUEUE_SIZE 200
|
||||
|
||||
#define INDEX_DATA_BOOL_NULL 0x02
|
||||
#define INDEX_DATA_TINYINT_NULL 0x80
|
||||
|
@ -61,6 +63,7 @@ static void indexDestroy(void* sIdx);
|
|||
void indexInit(int32_t threadNum) {
|
||||
indexThreads = threadNum;
|
||||
if (indexThreads <= 1) indexThreads = INDEX_NUM_OF_THREADS;
|
||||
if (indexThreads >= INDEX_MAX_NUM_OF_THREADS) indexThreads = INDEX_MAX_NUM_OF_THREADS;
|
||||
}
|
||||
void indexEnvInit() {
|
||||
// refactor later
|
||||
|
|
Loading…
Reference in New Issue