Merge pull request #23695 from taosdata/fix/TD-27313
fix(cos/list): free object array in exception
This commit is contained in:
commit
ed6be3b8c5
|
@ -520,7 +520,7 @@ int32_t s3PutObjectFromFile2(const char *file, const char *object) {
|
|||
|
||||
// div round up
|
||||
int seq;
|
||||
uint64_t chunk_size = MULTIPART_CHUNK_SIZE >> 8;
|
||||
uint64_t chunk_size = MULTIPART_CHUNK_SIZE >> 7;
|
||||
int totalSeq = ((contentLength + chunk_size - 1) / chunk_size);
|
||||
|
||||
MultipartPartData partData;
|
||||
|
@ -717,6 +717,7 @@ static SArray *getListByPrefix(const char *prefix) {
|
|||
return data.objectArray;
|
||||
}
|
||||
} else {
|
||||
taosArrayDestroyEx(data.objectArray, s3FreeObjectKey);
|
||||
s3PrintError(__func__, data.status, data.err_msg);
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
@ -359,6 +359,9 @@ static int32_t tsdbDoRetentionOnFileSet(SRTNer *rtner, STFileSet *fset) {
|
|||
s3EvictCache(fobj->fname, fsize * 2);
|
||||
}
|
||||
*/
|
||||
if (fobj->f->did.level > did.level) {
|
||||
continue;
|
||||
}
|
||||
tsdbInfo("file:%s size: %" PRId64 " do migrate from %d to %d", fobj->fname, fobj->f->size, fobj->f->did.level,
|
||||
did.level);
|
||||
|
||||
|
|
Loading…
Reference in New Issue