From 521636b9c51d405b09b19808242af6b4c45b2520 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Mon, 29 May 2023 14:44:36 +0800 Subject: [PATCH] fix: super table limit child table is work on childTblExists == false --- src/benchInsert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/benchInsert.c b/src/benchInsert.c index be34a76d..e565ea60 100644 --- a/src/benchInsert.c +++ b/src/benchInsert.c @@ -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;