summaryrefslogtreecommitdiff
path: root/src/rabbit_autoheal.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-07-04 17:03:21 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-07-04 17:03:21 +0100
commitc72036e9cfb18b92ff2df372d117c0c32a5a7bf6 (patch)
tree9fc756eb1a11f78d10aad3d3e6b702cd6663d81e /src/rabbit_autoheal.erl
parentedafeaec89aee0851db0dc56423fef5ed94cdf74 (diff)
downloadrabbitmq-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.erl3
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) ->