madmin: Fix args order in listObjectsHeal() (#3629)

The order of marker and delimiter and in listObjectsHeal() internal function
are switched. That will give wrong result in case of a non recursive objects
heal list.
This commit is contained in:
Anis Elleuch 2017-01-25 18:58:49 +01:00 committed by Harshavardhana
parent dbb5408906
commit 76b8abcd8e

View File

@ -182,7 +182,7 @@ func mkHealQueryVal(bucket, prefix, marker, delimiter, maxKeyStr string) url.Val
} }
// listObjectsHeal - issues heal list API request for a batch of maxKeys objects to be healed. // listObjectsHeal - issues heal list API request for a batch of maxKeys objects to be healed.
func (adm *AdminClient) listObjectsHeal(bucket, prefix, delimiter, marker string, maxKeys int) (listBucketHealResult, error) { func (adm *AdminClient) listObjectsHeal(bucket, prefix, marker, delimiter string, maxKeys int) (listBucketHealResult, error) {
// Construct query params. // Construct query params.
maxKeyStr := fmt.Sprintf("%d", maxKeys) maxKeyStr := fmt.Sprintf("%d", maxKeys)
queryVal := mkHealQueryVal(bucket, prefix, marker, delimiter, maxKeyStr) queryVal := mkHealQueryVal(bucket, prefix, marker, delimiter, maxKeyStr)