az/begin: remove duplicate begin & end of empty impl.

This commit is contained in:
Minglei Jin 2024-11-05 14:25:24 +08:00
parent d572f9e387
commit 90d1e014db
1 changed files with 4 additions and 8 deletions

View File

@ -22,6 +22,10 @@
#include "taoserror.h" #include "taoserror.h"
#include "tglobal.h" #include "tglobal.h"
int32_t azBegin() { return TSDB_CODE_SUCCESS; }
void azEnd() {}
#if defined(USE_S3) #if defined(USE_S3)
#include <azure/core.hpp> #include <azure/core.hpp>
@ -40,10 +44,6 @@ extern char tsS3BucketName[TSDB_FQDN_LEN];
extern int8_t tsS3Enabled; extern int8_t tsS3Enabled;
extern int8_t tsS3EpNum; extern int8_t tsS3EpNum;
int32_t azBegin() { return TSDB_CODE_SUCCESS; }
void azEnd() {}
static void checkPrint(const char *fmt, ...) { static void checkPrint(const char *fmt, ...) {
va_list arg_ptr; va_list arg_ptr;
va_start(arg_ptr, fmt); va_start(arg_ptr, fmt);
@ -524,10 +524,6 @@ int32_t azDeleteObjects(const char *object_name[], int nobject) {
#else #else
int32_t azBegin() { return TSDB_CODE_SUCCESS; }
void azEnd() {}
int32_t azCheckCfg() { return TSDB_CODE_SUCCESS; } int32_t azCheckCfg() { return TSDB_CODE_SUCCESS; }
int32_t azPutObjectFromFileOffset(const char *file, const char *object_name, int64_t offset, int64_t size) { int32_t azPutObjectFromFileOffset(const char *file, const char *object_name, int64_t offset, int64_t size) {