From aa716dd9b8d83dd0b6c4b8ff92564268345312e9 Mon Sep 17 00:00:00 2001 From: Samuel Merritt Date: Thu, 28 Mar 2013 12:03:58 -0700 Subject: [PATCH] Fix container-server sorting for manifest listings. The current code will always contact the container server for the first replica of the container; this fixes it to use the same backend-sort as all the other places in the proxy that talk to backends. Change-Id: If1c168b95bfc5cd120036869f3066549b7a1000a --- swift/proxy/controllers/obj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/proxy/controllers/obj.py b/swift/proxy/controllers/obj.py index 0d089fb2c8..92d6e88971 100644 --- a/swift/proxy/controllers/obj.py +++ b/swift/proxy/controllers/obj.py @@ -322,7 +322,7 @@ class ObjectController(Controller): lreq.environ['QUERY_STRING'] = \ 'format=json&prefix=%s&marker=%s' % (quote(lprefix), quote(marker)) - nodes = self.app.sort_nodes(lnodes) + lnodes = self.app.sort_nodes(lnodes) lresp = self.GETorHEAD_base( lreq, _('Container'), lpartition, lnodes, lreq.path_info, len(lnodes))