diff --git a/source/common/src/rsync.c b/source/common/src/rsync.c index 47a452eab7..b5ffae6845 100644 --- a/source/common/src/rsync.c +++ b/source/common/src/rsync.c @@ -160,7 +160,11 @@ int32_t startRsync() { code = system(cmd); if (code != 0) { uError("[rsync] cmd:%s start server failed, code:%d," ERRNO_ERR_FORMAT, cmd, code, ERRNO_ERR_DATA); - code = TAOS_SYSTEM_ERROR(errno); + if (errno == 0) { + return 0; + } else { + code = TAOS_SYSTEM_ERROR(errno); + } } else { uInfo("[rsync] cmd:%s start server successful", cmd); } @@ -358,4 +362,4 @@ int32_t deleteRsync(const char* id) { uDebug("[rsync] delete data:%s successful", id); return 0; -} \ No newline at end of file +} diff --git a/source/libs/azure/src/az.cpp b/source/libs/azure/src/az.cpp index 39aadb11b3..83cba1c877 100644 --- a/source/libs/azure/src/az.cpp +++ b/source/libs/azure/src/az.cpp @@ -21,7 +21,7 @@ #include "taoserror.h" #include "tglobal.h" -#if !defined(USE_S3) +#if defined(USE_S3) #include #include