cleanup tmp upload directories

This commit is contained in:
Chris Lu 2018-09-12 01:00:51 -07:00
parent f6d8525d1d
commit f628953c33

View File

@ -102,6 +102,10 @@ func (s3a *S3ApiServer) completeMultipartUpload(input *s3.CompleteMultipartUploa
},
}
if err = s3a.rm(s3a.genUploadsFolder(*input.Bucket), *input.UploadId, true, false, true); err != nil {
glog.V(1).Infof("completeMultipartUpload cleanup %s upload %s: %v", *input.Bucket, *input.UploadId, err)
}
return
}
@ -155,6 +159,7 @@ func (s3a *S3ApiServer) listMultipartUploads(input *s3.ListMultipartUploadsInput
})
}
}
return
}