[TD-192]
This commit is contained in:
parent
dcb309cedc
commit
7293ebe830
|
@ -43,7 +43,7 @@ lib_files="${build_dir}/lib/libtaos.so.${version}"
|
||||||
header_files="${code_dir}/inc/taos.h ${code_dir}/inc/taoserror.h"
|
header_files="${code_dir}/inc/taos.h ${code_dir}/inc/taoserror.h"
|
||||||
cfg_dir="${top_dir}/packaging/cfg"
|
cfg_dir="${top_dir}/packaging/cfg"
|
||||||
install_files="${script_dir}/install.sh"
|
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 file
|
||||||
#init_dir=${script_dir}/deb
|
#init_dir=${script_dir}/deb
|
||||||
|
|
|
@ -15,4 +15,4 @@ ADD_SUBDIRECTORY(vnode)
|
||||||
ADD_SUBDIRECTORY(tsdb)
|
ADD_SUBDIRECTORY(tsdb)
|
||||||
ADD_SUBDIRECTORY(wal)
|
ADD_SUBDIRECTORY(wal)
|
||||||
ADD_SUBDIRECTORY(dnode)
|
ADD_SUBDIRECTORY(dnode)
|
||||||
#ADD_SUBDIRECTORY(connector/jdbc)
|
ADD_SUBDIRECTORY(connector/jdbc)
|
||||||
|
|
|
@ -2,5 +2,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
||||||
PROJECT(TDengine)
|
PROJECT(TDengine)
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(shell)
|
ADD_SUBDIRECTORY(shell)
|
||||||
#ADD_SUBDIRECTORY(taosdemo)
|
ADD_SUBDIRECTORY(taosdemo)
|
||||||
#ADD_SUBDIRECTORY(taosdump)
|
ADD_SUBDIRECTORY(taosdump)
|
||||||
|
|
|
@ -2,6 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
||||||
PROJECT(TDengine)
|
PROJECT(TDengine)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/inc)
|
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/client/inc)
|
||||||
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/util/inc)
|
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/util/inc)
|
||||||
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
|
INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/query/inc)
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "taos.h"
|
#include "taos.h"
|
||||||
#include "taosmsg.h"
|
#include "taosmsg.h"
|
||||||
#include "tglobal.h"
|
//#include "tglobal.h"
|
||||||
#include "tsclient.h"
|
#include "tsclient.h"
|
||||||
#include "taosdef.h"
|
#include "taosdef.h"
|
||||||
#include "tutil.h"
|
#include "tutil.h"
|
||||||
|
@ -360,7 +360,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
void taosFreeDbInfos() {
|
void taosFreeDbInfos() {
|
||||||
if (dbInfos == NULL) return;
|
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);
|
tfree(dbInfos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ int taosDumpOut(struct arguments *arguments) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
dbInfos = (SDbInfo **)calloc(tsMaxDbs, sizeof(SDbInfo *));
|
dbInfos = (SDbInfo **)calloc(TSDB_MAX_DBS, sizeof(SDbInfo *));
|
||||||
if (dbInfos == NULL) {
|
if (dbInfos == NULL) {
|
||||||
fprintf(stderr, "failed to allocate memory\n");
|
fprintf(stderr, "failed to allocate memory\n");
|
||||||
goto _exit_failure;
|
goto _exit_failure;
|
||||||
|
@ -1330,4 +1330,4 @@ _exit_no_charset:
|
||||||
*fcharset = '\0';
|
*fcharset = '\0';
|
||||||
tfree(line);
|
tfree(line);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue