summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2012-12-13 22:44:27 -0500
committerPeter Portante <peter.portante@redhat.com>2013-04-29 16:35:57 -0400
commit731fb94885e823befb7baa061aa81dd81dc5aade (patch)
tree80e2723ca1afc9edf9c1e6286345ff6c8fe4ca9f
parent75881dae627a5be6858f90c4ff6782f782d5e592 (diff)
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>
-rw-r--r--ufo/gluster/swift/common/DiskDir.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/ufo/gluster/swift/common/DiskDir.py b/ufo/gluster/swift/common/DiskDir.py
index 1e6a552..eb854f8 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)