This commit is contained in:
Michael Barton
2011-02-24 09:46:08 +00:00
parent e1bd4e8769
commit e357ffcb18

View File

@@ -521,8 +521,7 @@ class Controller(object):
handoff nodes as needed.
"""
nodes = self.iter_nodes(part, ring.get_part_nodes(part), ring)
with ContextPool(ring.replica_count) as pool:
pile = GreenPile(pool)
pile = GreenPile(ring.replica_count)
for head in headers:
pile.spawn(self._make_request, nodes, part, method, path,
head, query_string)
@@ -1290,7 +1289,7 @@ class ContainerController(Controller):
class AccountController(Controller):
"""WSGI controller for account requests"""
server_type = _('Container')
server_type = _('Account')
def __init__(self, app, account_name, **kwargs):
Controller.__init__(self, app)