From be6bd52978b84780ba5c515360439752ff1f4cd9 Mon Sep 17 00:00:00 2001 From: Krishna Srinivas Date: Fri, 4 Aug 2017 14:14:23 -0700 Subject: [PATCH] fs: use keymarker and uploadidmarker in the multipart purging loop (#4775) related to #4564 --- cmd/fs-v1-multipart.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/fs-v1-multipart.go b/cmd/fs-v1-multipart.go index deb9dac52..f1869409d 100644 --- a/cmd/fs-v1-multipart.go +++ b/cmd/fs-v1-multipart.go @@ -943,7 +943,8 @@ func (fs fsObjects) cleanupStaleMultipartUpload(bucket string) (err error) { for { // 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 { errorIf(err, fmt.Sprintf("Failed to list uploads of %s for cleaning up of multipart uploads older than %d weeks", bucket, fsMultipartExpiry)) return err