diff options
author | Peter Portante <peter.portante@redhat.com> | 2012-12-13 22:44:27 -0500 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-12-17 06:16:44 -0800 |
commit | a1f4a415374b4ff9afd847b7a1fbb4890c5e34a1 (patch) | |
tree | ecaf1e84ed7937e7f64181f2e887a34bf8092832 /ufo/gluster/swift | |
parent | 10ef8ef65a29d1ed7257c8649870b8b735fe0e10 (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>
Diffstat (limited to 'ufo/gluster/swift')
-rw-r--r-- | ufo/gluster/swift/common/DiskDir.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ufo/gluster/swift/common/DiskDir.py b/ufo/gluster/swift/common/DiskDir.py index 1e6a552b818..eb854f88240 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) |