Commit 90cd4455 authored by Ryosuke Hasebe's avatar Ryosuke Hasebe Committed by antirez
Browse files

fix check_open_slots

parent 401383f1
...@@ -407,7 +407,8 @@ class RedisTrib ...@@ -407,7 +407,8 @@ class RedisTrib
cluster_error \ cluster_error \
"[WARNING] Node #{n} has slots in migrating state (#{n.info[:migrating].keys.join(",")})." "[WARNING] Node #{n} has slots in migrating state (#{n.info[:migrating].keys.join(",")})."
open_slots += n.info[:migrating].keys open_slots += n.info[:migrating].keys
elsif n.info[:importing].size > 0 end
if n.info[:importing].size > 0
cluster_error \ cluster_error \
"[WARNING] Node #{n} has slots in importing state (#{n.info[:importing].keys.join(",")})." "[WARNING] Node #{n} has slots in importing state (#{n.info[:importing].keys.join(",")})."
open_slots += n.info[:importing].keys open_slots += n.info[:importing].keys
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment