Update swift-get-nodes to return fewer more_nodes
Changed swift-get-nodes to just return up to replica_count of more_nodes instead of all of them. When you have thousands of drives, returning all possible handoff nodes is pretty crazy. :) Change-Id: I864e7243726ca3ef2ac08c4ab660a05789f37878
This commit is contained in:
parent
c0e7c38c9f
commit
95786e577c
@ -65,7 +65,11 @@ elif len(sys.argv) > 2:
|
||||
target = "%s" % (account)
|
||||
loc = 'accounts'
|
||||
|
||||
more_nodes = list(ring.get_more_nodes(part))
|
||||
more_nodes = []
|
||||
for more_node in ring.get_more_nodes(part):
|
||||
more_nodes.append(more_node)
|
||||
if len(more_nodes) >= ring.replica_count:
|
||||
break
|
||||
|
||||
print '\nAccount \t%s' % account
|
||||
print 'Container\t%s' % container
|
||||
|
Loading…
Reference in New Issue
Block a user