提交 d7eae8d8 编写于 作者: A antirez

redis-trib: fixed ClusterNode migrating/importing slots detection.

上级 1baa1530
......@@ -118,10 +118,10 @@ class ClusterNode
@info[:slots] = {}
slots.each{|s|
if s[0..0] == '['
if s[2..4] == "->-" # Migrating
if s.index("->-") # Migrating
slot,dst = s[1..-1].split("->-")
@info[:migrating][slot] = dst
elsif s[2..4] == "-<-" # Importing
elsif s.index("-<-") # Importing
slot,src = s[1..-1].split("-<-")
@info[:importing][slot] = src
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册