object-storage: don't sort object list, not req'd
The REST API for listing objects in a container does not require that the list of objects be sorted (the API for listing containers in an account does require it). Since we can have thousands and thousands of objects in a container, don't sort them when it is not required. Change-Id: I6939ef3fec3ea3814a49e3a3046273304889831c BUG: 887301 Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/4312 Reviewed-by: Mohammed Junaid <junaid@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
parent
10ef8ef65a
commit
a1f4a41537
@ -286,9 +286,6 @@ class DiskDir(DiskCommon):
|
||||
|
||||
objects, object_count, bytes_used = self.object_info
|
||||
|
||||
if objects:
|
||||
objects.sort()
|
||||
|
||||
if objects and prefix:
|
||||
objects = self.filter_prefix(objects, prefix)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user