mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 17:40:50 +00:00
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.
This commit is contained in:
parent
4aab50ac7b
commit
4242fdf45c
@ -1305,6 +1305,11 @@ class RedisTrib
|
|||||||
sleep 1
|
sleep 1
|
||||||
wait_cluster_join
|
wait_cluster_join
|
||||||
flush_nodes_config # Useful for the replicas
|
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
|
check_cluster
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user