vnode/cos: fix get callback buffer
This commit is contained in:
parent
a9dfb40069
commit
f26ec41b8e
|
@ -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 ()
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue