diff options
author | rojingeorge <itsmerojin@gmail.com> | 2016-06-23 21:58:03 +0530 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-08-05 15:11:21 +0200 |
commit | 011dc9f9a541a38be35057d5143344472c80a267 (patch) | |
tree | 8a01baf5ce003f598678b0e35fc8ea1ec74ed83b | |
parent | f4e3a940c4689c03c25c7fca10ebc12f0f64ed0c (diff) | |
download | redis-011dc9f9a541a38be35057d5143344472c80a267.tar.gz |
Display the nodes summary once the cluster is established using redis-trib.rb
Display the nodes summary once the cluster is established using
redis-trib.rb
After the cluster meet and join was done, when the summary was shown, it
was giving info regarding the nodes. This fix ensures that confusion
where the slaves were shown as masters.
Fix would be to reset the nodes and reload the cluster information
before checking the cluster status after creating it.
-rwxr-xr-x | src/redis-trib.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb index f6c17ad59..46b431348 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 |