summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/redis-trib.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index 68d46bdf8..b40b5decb 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -1305,6 +1305,11 @@ class RedisTrib
sleep 1
wait_cluster_join
flush_nodes_config # Useful for the replicas
+ # Reset the node information, so that when the
+ # final summary is listed in check_cluster about the newly created cluster
+ # all the nodes would get properly listed as slaves or masters
+ reset_nodes
+ load_cluster_info_from_node(argv[0])
check_cluster
end