From 831e2b6ff7662115b90839cf4889daa38fcfee6f Mon Sep 17 00:00:00 2001 From: slguan Date: Thu, 8 Aug 2019 13:52:51 +0800 Subject: [PATCH] fix some compile errors --- src/kit/CMakeLists.txt | 2 +- src/kit/taosdemo/taosdemo.c | 2 +- src/system/src/vnodeCommit.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kit/CMakeLists.txt b/src/kit/CMakeLists.txt index f22de9cab7..259958675b 100644 --- a/src/kit/CMakeLists.txt +++ b/src/kit/CMakeLists.txt @@ -3,5 +3,5 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(TDengine) ADD_SUBDIRECTORY(shell) -ADD_SUBDIRECTORY(taosBenchmark) +ADD_SUBDIRECTORY(taosdemo) ADD_SUBDIRECTORY(taosdump) diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index 8cdb49d81a..d065fcaea3 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -299,7 +299,7 @@ int main(int argc, char *argv[]) { arguments.num_of_RPR = 1000; arguments.use_metric = true; arguments.insert_only = true; - // end change + // end change argp_parse(&argp, argc, argv, 0, 0, &arguments); diff --git a/src/system/src/vnodeCommit.c b/src/system/src/vnodeCommit.c index 4a63095bfd..66631b4de2 100644 --- a/src/system/src/vnodeCommit.c +++ b/src/system/src/vnodeCommit.c @@ -250,7 +250,7 @@ int vnodeInitCommit(int vnode) { void vnodeCleanUpCommit(int vnode) { SVnodeObj *pVnode = vnodeList + vnode; - if (VALIDFD(pVnode->logFd)) tclose(pVnode->logFd); + if (VALIDFD(pVnode->logFd)) close(pVnode->logFd); if (pVnode->cfg.commitLog && (pVnode->logFd > 0 && remove(pVnode->logFn) < 0)) { dError("vid:%d, failed to remove:%s", vnode, pVnode->logFn); -- GitLab