From a1f4a415374b4ff9afd847b7a1fbb4890c5e34a1 Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Thu, 13 Dec 2012 22:44:27 -0500 Subject: 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 Reviewed-on: http://review.gluster.org/4312 Reviewed-by: Mohammed Junaid Tested-by: Gluster Build System --- ufo/gluster/swift/common/DiskDir.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'ufo') diff --git a/ufo/gluster/swift/common/DiskDir.py b/ufo/gluster/swift/common/DiskDir.py index 1e6a552b..eb854f88 100644 --- a/ufo/gluster/swift/common/DiskDir.py +++ b/ufo/gluster/swift/common/DiskDir.py @@ -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) -- cgit