mirror of
https://github.com/minio/minio.git
synced 2024-12-27 15:45:55 -05:00
Merge pull request #539 from harshavardhana/pr_out_return_resources_as_its_available_not_a_new_value
This commit is contained in:
commit
8d1d309630
@ -419,7 +419,8 @@ func (memory *memoryDriver) ListObjects(bucket string, resources drivers.BucketR
|
||||
sort.Strings(keys)
|
||||
for _, key := range keys {
|
||||
if len(results) == resources.Maxkeys {
|
||||
return results, drivers.BucketResourcesMetadata{IsTruncated: true}, nil
|
||||
resources.IsTruncated = true
|
||||
return results, resources, nil
|
||||
}
|
||||
object := memory.objectMetadata[bucket+"/"+key]
|
||||
if bucket == object.metadata.Bucket {
|
||||
|
Loading…
Reference in New Issue
Block a user