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
This commit is contained in:
Samuel Merritt 2013-03-28 12:03:58 -07:00
parent 44f00a23c1
commit aa716dd9b8

View File

@ -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))