diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2013-07-04 17:03:21 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2013-07-04 17:03:21 +0100 |
commit | c72036e9cfb18b92ff2df372d117c0c32a5a7bf6 (patch) | |
tree | 9fc756eb1a11f78d10aad3d3e6b702cd6663d81e /src/rabbit_autoheal.erl | |
parent | edafeaec89aee0851db0dc56423fef5ed94cdf74 (diff) | |
download | rabbitmq-server-c72036e9cfb18b92ff2df372d117c0c32a5a7bf6.tar.gz |
More sensible API for partitions, do not return errors.bug25651
Diffstat (limited to 'src/rabbit_autoheal.erl')
-rw-r--r-- | src/rabbit_autoheal.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_autoheal.erl b/src/rabbit_autoheal.erl index f903677b..6cbfcce3 100644 --- a/src/rabbit_autoheal.erl +++ b/src/rabbit_autoheal.erl @@ -181,8 +181,7 @@ partition_value(Partition) -> all_partitions(PartitionedWith) -> Nodes = rabbit_mnesia:cluster_nodes(all), Partitions = [{node(), PartitionedWith} | - [rpc:call(Node, rabbit_node_monitor, partitions, []) - || Node <- Nodes -- [node()]]], + rabbit_node_monitor:partitions(Nodes -- [node()])], all_partitions(Partitions, [Nodes]). all_partitions([], Partitions) -> |