Skip to content

Commit c3c201d

Browse files
Merge pull request #1130 from versity/ben/scoutfs-mp-cleanup
fix: scoutfs multipart cleanup in complete/abort mp
2 parents 293e7fa + f77058b commit c3c201d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/scoutfs/scoutfs.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,10 @@ func (s *ScoutFS) CompleteMultipartUpload(ctx context.Context, input *s3.Complet
352352
}
353353

354354
// cleanup tmp dirs
355-
os.RemoveAll(upiddir)
355+
os.RemoveAll(filepath.Join(bucket, upiddir))
356356
// use Remove for objdir in case there are still other uploads
357357
// for same object name outstanding
358-
os.Remove(objdir)
358+
os.Remove(filepath.Join(bucket, objdir))
359359

360360
return &s3.CompleteMultipartUploadOutput{
361361
Bucket: &bucket,

0 commit comments

Comments
 (0)