From 831dbc5b5074976c8650517c17f1e7ce588bf390 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 16 May 2022 21:40:30 +0800 Subject: [PATCH] refactor:add the configuration of child table name --- source/client/test/CMakeLists.txt | 4 ++++ source/common/src/tglobal.c | 1 + 2 files changed, 5 insertions(+) diff --git a/source/client/test/CMakeLists.txt b/source/client/test/CMakeLists.txt index 3fc91d07b6..03d2b48134 100644 --- a/source/client/test/CMakeLists.txt +++ b/source/client/test/CMakeLists.txt @@ -41,3 +41,7 @@ TARGET_INCLUDE_DIRECTORIES( PRIVATE "${TD_SOURCE_DIR}/source/client/inc" ) +add_test( + NAME smlTest + COMMAND smlTest +) diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 8a109800e6..5beb5454de 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -323,6 +323,7 @@ static int32_t taosAddClientCfg(SConfig *pCfg) { if (cfgAddInt32(pCfg, "compressColData", tsCompressColData, -1, 100000000, 1) != 0) return -1; if (cfgAddBool(pCfg, "keepColumnName", tsKeepOriginalColumnName, 1) != 0) return -1; if (cfgAddInt32(pCfg, "queryPolicy", tsQueryPolicy, 1, 3, 1) != 0) return -1; + if (cfgAddString(pCfg, "smlChildTableName", "", 1) != 0) return -1; tsNumOfTaskQueueThreads = tsNumOfCores / 4; tsNumOfTaskQueueThreads = TRANGE(tsNumOfTaskQueueThreads, 1, 2); -- GitLab