From 7293ebe830543d37f0c9112776dd496862b2e62a Mon Sep 17 00:00:00 2001 From: lihui Date: Thu, 23 Apr 2020 16:02:51 +0800 Subject: [PATCH] [TD-192] --- packaging/tools/makepkg.sh | 2 +- src/CMakeLists.txt | 2 +- src/kit/CMakeLists.txt | 4 ++-- src/kit/taosdump/CMakeLists.txt | 1 + src/kit/taosdump/taosdump.c | 8 ++++---- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packaging/tools/makepkg.sh b/packaging/tools/makepkg.sh index d39cf41843..c214626efd 100755 --- a/packaging/tools/makepkg.sh +++ b/packaging/tools/makepkg.sh @@ -43,7 +43,7 @@ lib_files="${build_dir}/lib/libtaos.so.${version}" header_files="${code_dir}/inc/taos.h ${code_dir}/inc/taoserror.h" cfg_dir="${top_dir}/packaging/cfg" install_files="${script_dir}/install.sh" -nginx_dir="${code_dir}/../../enterprise/src/modules/web" +nginx_dir="${code_dir}/../../enterprise/src/plugins/web" # Init file #init_dir=${script_dir}/deb diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1a8f7d8807..904050fb1b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,4 +15,4 @@ ADD_SUBDIRECTORY(vnode) ADD_SUBDIRECTORY(tsdb) ADD_SUBDIRECTORY(wal) ADD_SUBDIRECTORY(dnode) -#ADD_SUBDIRECTORY(connector/jdbc) +ADD_SUBDIRECTORY(connector/jdbc) diff --git a/src/kit/CMakeLists.txt b/src/kit/CMakeLists.txt index 386c8a92f7..66e8cf7398 100644 --- a/src/kit/CMakeLists.txt +++ b/src/kit/CMakeLists.txt @@ -2,5 +2,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(TDengine) ADD_SUBDIRECTORY(shell) -#ADD_SUBDIRECTORY(taosdemo) -#ADD_SUBDIRECTORY(taosdump) +ADD_SUBDIRECTORY(taosdemo) +ADD_SUBDIRECTORY(taosdump) diff --git a/src/kit/taosdump/CMakeLists.txt b/src/kit/taosdump/CMakeLists.txt index a15b0ff552..c63168237c 100644 --- a/src/kit/taosdump/CMakeLists.txt +++ b/src/kit/taosdump/CMakeLists.txt @@ -2,6 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(TDengine) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc) +INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/common/inc) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/client/inc) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/util/inc) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc) diff --git a/src/kit/taosdump/taosdump.c b/src/kit/taosdump/taosdump.c index 4b613aefdc..bb3aa46fb1 100644 --- a/src/kit/taosdump/taosdump.c +++ b/src/kit/taosdump/taosdump.c @@ -30,7 +30,7 @@ #include "taos.h" #include "taosmsg.h" -#include "tglobal.h" +//#include "tglobal.h" #include "tsclient.h" #include "taosdef.h" #include "tutil.h" @@ -360,7 +360,7 @@ int main(int argc, char *argv[]) { void taosFreeDbInfos() { if (dbInfos == NULL) return; - for (int i = 0; i < tsMaxDbs; i++) tfree(dbInfos[i]); + for (int i = 0; i < TSDB_MAX_DBS; i++) tfree(dbInfos[i]); tfree(dbInfos); } @@ -440,7 +440,7 @@ int taosDumpOut(struct arguments *arguments) { return -1; } - dbInfos = (SDbInfo **)calloc(tsMaxDbs, sizeof(SDbInfo *)); + dbInfos = (SDbInfo **)calloc(TSDB_MAX_DBS, sizeof(SDbInfo *)); if (dbInfos == NULL) { fprintf(stderr, "failed to allocate memory\n"); goto _exit_failure; @@ -1330,4 +1330,4 @@ _exit_no_charset: *fcharset = '\0'; tfree(line); return; -} \ No newline at end of file +} -- GitLab