[TD-4136]<fix>: taosdemo records per req more than 32767. (#6087)
for develop branch. Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
ed903bd9eb
commit
e8190f17c8
|
@ -68,6 +68,8 @@ enum TEST_MODE {
|
||||||
INVAID_TEST
|
INVAID_TEST
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define MAX_RECORDS_PER_REQ 32766
|
||||||
|
|
||||||
#define MAX_SQL_SIZE 65536
|
#define MAX_SQL_SIZE 65536
|
||||||
#define BUFFER_SIZE (65536*2)
|
#define BUFFER_SIZE (65536*2)
|
||||||
#define COND_BUF_LEN BUFFER_SIZE - 30
|
#define COND_BUF_LEN BUFFER_SIZE - 30
|
||||||
|
@ -3434,10 +3436,12 @@ static bool getMetaFromInsertJsonFile(cJSON* root) {
|
||||||
errorPrint("%s() LN%d, failed to read json, num_of_records_per_req input mistake\n",
|
errorPrint("%s() LN%d, failed to read json, num_of_records_per_req input mistake\n",
|
||||||
__func__, __LINE__);
|
__func__, __LINE__);
|
||||||
goto PARSE_OVER;
|
goto PARSE_OVER;
|
||||||
|
} else if (numRecPerReq->valueint > MAX_RECORDS_PER_REQ) {
|
||||||
|
numRecPerReq->valueint = MAX_RECORDS_PER_REQ;
|
||||||
}
|
}
|
||||||
g_args.num_of_RPR = numRecPerReq->valueint;
|
g_args.num_of_RPR = numRecPerReq->valueint;
|
||||||
} else if (!numRecPerReq) {
|
} else if (!numRecPerReq) {
|
||||||
g_args.num_of_RPR = UINT64_MAX;
|
g_args.num_of_RPR = MAX_RECORDS_PER_REQ;
|
||||||
} else {
|
} else {
|
||||||
errorPrint("%s() LN%d, failed to read json, num_of_records_per_req not found\n",
|
errorPrint("%s() LN%d, failed to read json, num_of_records_per_req not found\n",
|
||||||
__func__, __LINE__);
|
__func__, __LINE__);
|
||||||
|
|
Loading…
Reference in New Issue