Merge pull request #1130 from versity/ben/scoutfs-mp-cleanup

fix: scoutfs multipart cleanup in complete/abort mp
This commit is contained in:
Ben McClelland
2025-03-10 14:46:54 -07:00
committed by GitHub

View File

@@ -352,10 +352,10 @@ func (s *ScoutFS) CompleteMultipartUpload(ctx context.Context, input *s3.Complet
}
// cleanup tmp dirs
os.RemoveAll(upiddir)
os.RemoveAll(filepath.Join(bucket, upiddir))
// use Remove for objdir in case there are still other uploads
// for same object name outstanding
os.Remove(objdir)
os.Remove(filepath.Join(bucket, objdir))
return &s3.CompleteMultipartUploadOutput{
Bucket: &bucket,