Lines Matching refs:src
153 slot,src = s[1..-1].split("-<-")
154 @info[:importing][slot.to_i] = src
489 nodes.each{|src|
490 next if src == target
494 src.r.cluster('setslot',slot,'importing',target.info[:name])
495 move_slot(src,target,slot,:dots=>true,:fix=>true,:cold=>true)
496 src.r.cluster('setslot',slot,'stable')
1097 src = sn[src_idx]
1098 numslots = [dst.info[:balance],src.info[:balance]].map{|n|
1103 puts "Moving #{numslots} slots from #{src} to #{dst}"
1106 reshard_table = compute_reshard_table([src],numslots)
1129 src.info[:balance] -= numslots
1131 src_idx -= 1 if src.info[:balance] == 0
1193 src = get_node_by_name(node_id)
1194 if !src || src.has_flag?("slave")
1198 sources << src
1207 src = get_node_by_name(line)
1213 elsif !src || src.has_flag?("slave")
1215 elsif src.info[:name] == target.info[:name]
1218 sources << src