Lines Matching refs:sources
872 def compute_reshard_table(sources,numslots) argument
881 sources = sources.sort{|a,b| b.slots.length <=> a.slots.length}
882 source_tot_slots = sources.inject(0) {|sum,source|
885 sources.each_with_index{|s,i|
1186 sources = []
1190 sources = "all"
1198 sources << src
1205 print "Source node ##{sources.length+1}:"
1211 sources = "all"
1218 sources << src
1223 if sources.length == 0
1229 if sources == "all"
1230 sources = []
1234 sources << n
1239 if sources.index(target)
1246 sources.each{|s| puts " "+s.info_string}
1249 reshard_table = compute_reshard_table(sources,numslots)