mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
fs: use keymarker and uploadidmarker in the multipart purging loop (#4775)
related to #4564
This commit is contained in:
parent
75c43bfb6c
commit
be6bd52978
@ -943,7 +943,8 @@ func (fs fsObjects) cleanupStaleMultipartUpload(bucket string) (err error) {
|
|||||||
|
|
||||||
for {
|
for {
|
||||||
// List multipart uploads in a bucket 1000 at a time
|
// List multipart uploads in a bucket 1000 at a time
|
||||||
lmi, err = fs.listMultipartUploadsHelper(bucket, "", "", "", "/", 1000)
|
prefix := ""
|
||||||
|
lmi, err = fs.listMultipartUploadsHelper(bucket, prefix, lmi.KeyMarker, lmi.UploadIDMarker, slashSeparator, 1000)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errorIf(err, fmt.Sprintf("Failed to list uploads of %s for cleaning up of multipart uploads older than %d weeks", bucket, fsMultipartExpiry))
|
errorIf(err, fmt.Sprintf("Failed to list uploads of %s for cleaning up of multipart uploads older than %d weeks", bucket, fsMultipartExpiry))
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user