[TD-3775]<fix>: taosdemo interlace rows more than insert rows. (#5819)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
a37f5a42cc
commit
8b72cf391c
|
@ -4801,6 +4801,9 @@ static void* syncWriteInterlace(threadInfo *pThreadInfo) {
|
|||
int64_t insertRows = (superTblInfo)?superTblInfo->insertRows:g_args.num_of_DPT;
|
||||
int interlaceRows = superTblInfo?superTblInfo->interlaceRows:g_args.interlace_rows;
|
||||
|
||||
if (interlaceRows > insertRows)
|
||||
interlaceRows = insertRows;
|
||||
|
||||
if (interlaceRows > g_args.num_of_RPR)
|
||||
interlaceRows = g_args.num_of_RPR;
|
||||
|
||||
|
@ -4849,9 +4852,6 @@ static void* syncWriteInterlace(threadInfo *pThreadInfo) {
|
|||
|
||||
assert(pThreadInfo->ntables > 0);
|
||||
|
||||
if (interlaceRows > g_args.num_of_RPR)
|
||||
interlaceRows = g_args.num_of_RPR;
|
||||
|
||||
int batchPerTbl = interlaceRows;
|
||||
|
||||
int batchPerTblTimes;
|
||||
|
|
Loading…
Reference in New Issue