summaryrefslogtreecommitdiff
path: root/src/redis-trib.rb
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2014-03-24 18:31:55 +0100
committerSalvatore Sanfilippo <antirez@gmail.com>2014-03-24 18:31:55 +0100
commit8e6625e6ae8a77d6c0869d8e5d5409bc6068cfd1 (patch)
tree6ca8cef74db50107a050040277710579d516e08d /src/redis-trib.rb
parenta006fcb8a77127e38bc45c7a622281b622623bf8 (diff)
parente942f3ce0fee5033d2d4b4e8c5b9f1d912a1d370 (diff)
downloadredis-8e6625e6ae8a77d6c0869d8e5d5409bc6068cfd1.tar.gz
Merge pull request #1629 from mattsta/fix-trib-master-assignment
Cluster: Restore proper trib master iteration
Diffstat (limited to 'src/redis-trib.rb')
-rwxr-xr-xsrc/redis-trib.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index 4efe11cba..85139ebb9 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -586,6 +586,7 @@ class RedisTrib
nodes_count -= 1
assigned_replicas += 1
puts "Adding replica #{slave} to #{m}"
+ break
}
end
}