vnode/cos: fix get callback buffer

This commit is contained in:
Minglei Jin 2023-10-18 15:30:02 +08:00
parent a9dfb40069
commit f26ec41b8e
4 changed files with 5 additions and 3 deletions

View File

@ -22,6 +22,9 @@ IF (TD_STORAGE)
add_definitions(-DUSE_COS)
ENDIF(${BUILD_WITH_COS})
IF(${BUILD_WITH_S3})
add_definitions(-DUSE_S3)
ENDIF(${BUILD_WITH_S3})
ENDIF(${TD_LINUX})
ENDIF ()

View File

@ -329,7 +329,7 @@ int32_t taosSetS3Cfg(SConfig *pCfg) {
}
}
if (tsS3BucketName[0] != '<' && tsDiskCfgNum > 1) {
#ifdef USE_COS
#if defined(USE_COS) || defined(USE_S3)
tsS3Enabled = true;
#endif
}

View File

@ -164,7 +164,6 @@ target_link_libraries(
if(${TD_LINUX})
if(${BUILD_WITH_S3})
MESSAGE("build with s3: ${BUILD_WITH_S3}")
target_include_directories(
vnode

View File

@ -721,7 +721,7 @@ static S3Status getObjectDataCallback(int bufferSize, const char *buffer, void *
char *buf = taosMemoryCalloc(1, bufferSize);
if (buf) {
memcpy(buf, buffer, bufferSize);
cbd->buf = buf;
cbd->status = S3StatusOK;
return S3StatusOK;
} else {