summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2016-08-05 15:10:41 +0200
committerGitHub <noreply@github.com>2016-08-05 15:10:41 +0200
commit9f779b33b54615d4bbaaafadfc5d5f9b93e2166b (patch)
tree3c773becd59ce7f7037c6e0ec25c50cf9782c8d6
parentc5414cef71c4ff1501ee62cbdfbb6cec52ca4296 (diff)
parentd0f53079e31641c860ea577f876f4361d23f53f3 (diff)
downloadredis-9f779b33b54615d4bbaaafadfc5d5f9b93e2166b.tar.gz
Merge pull request #3340 from rojingeorge/unstable
Display the nodes' proper summary once the cluster is created using redis-trib
-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