Merge pull request #24030 from taosdata/fix/TD-27836

fix(cos/put): null fd after close to fix double closing
This commit is contained in:
Hongze Cheng 2023-12-12 15:07:25 +08:00 committed by GitHub
commit 6f6b3bbbd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -710,6 +710,7 @@ upload:
} }
cos_cp_close(cp.thefile); cos_cp_close(cp.thefile);
cp.thefile = 0;
int size = 0; int size = 0;
size += growbuffer_append(&(manager.gb), "<CompleteMultipartUpload>", strlen("<CompleteMultipartUpload>")); size += growbuffer_append(&(manager.gb), "<CompleteMultipartUpload>", strlen("<CompleteMultipartUpload>"));