Skip to content

Commit

Permalink
fix: super table limit child table is work on childTblExists == false
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed May 29, 2023
1 parent 83b5b13 commit 521636b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -2808,7 +2808,7 @@ static int startMultiThreadInsertData(SDataBase* database,
int64_t ntables;
if (stbInfo->childTblTo > 0) {
ntables = stbInfo->childTblTo - stbInfo->childTblFrom;
} else if (stbInfo->childTblLimit) {
} else if (stbInfo->childTblLimit > 0 && stbInfo->childTblExists) {
ntables = stbInfo->childTblLimit;
} else {
ntables = stbInfo->childTblCount;
Expand Down

0 comments on commit 521636b

Please sign in to comment.