From 0551a86c42809c83cbb2169ba89140c0c25b6712 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Thu, 26 Aug 2021 16:24:50 +0800 Subject: [PATCH] Hotfix/sangshuduo/td 5875 taosdemo ue improve for master (#7615) * better msg for create child table. * just add one new line. --- src/kit/taosdemo/taosdemo.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index 30d8a1e675..282a5d64ab 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -102,7 +102,7 @@ extern char configDir[]; #define NOTE_BUFF_LEN (SMALL_BUFF_LEN*16) #define DEFAULT_TIMESTAMP_STEP 1 - +#define DEFAULT_CHILDTABLES 10000 enum TEST_MODE { INSERT_TEST, // 0 @@ -625,7 +625,7 @@ SArguments g_args = { 0, // interlace_rows; 30000, // num_of_RPR (1024*1024), // max_sql_len - 10000, // num_of_tables + DEFAULT_CHILDTABLES, // num_of_tables 10000, // num_of_DPT 0, // abort 0, // disorderRatio @@ -639,7 +639,7 @@ SArguments g_args = { static SDbs g_Dbs; -static int64_t g_totalChildTables = 0; +static int64_t g_totalChildTables = DEFAULT_CHILDTABLES; static int64_t g_actualChildTables = 0; static SQueryMetaInfo g_queryInfo; static FILE * g_fpOfInsertResult = NULL; @@ -9154,6 +9154,7 @@ int main(int argc, char *argv[]) { debugPrint("meta file: %s\n", g_args.metaFile); if (g_args.metaFile) { + g_totalChildTables = 0; initOfInsertMeta(); initOfQueryMeta(); -- GitLab