@@ -371,7 +371,7 @@ rebalance(Type, VhostSpec, QueueSpec) ->
371371maybe_rebalance ({true , Id }, Type , VhostSpec , QueueSpec ) ->
372372 rabbit_log :info (" Starting queue rebalance operation: '~ts ' for vhosts matching '~ts ' and queues matching '~ts '" ,
373373 [Type , VhostSpec , QueueSpec ]),
374- Running = rabbit_maintenance :filter_out_drained_nodes_consistent_read (rabbit_nodes :all_running ()),
374+ Running = rabbit_maintenance :filter_out_drained_nodes_consistent_read (rabbit_nodes :list_running ()),
375375 NumRunning = length (Running ),
376376 ToRebalance = [Q || Q <- rabbit_amqqueue :list (),
377377 filter_per_type (Type , Q ),
@@ -1048,7 +1048,7 @@ check_queue_type(_Val, _Args) ->
10481048
10491049list () ->
10501050 All = rabbit_db_queue :get_all (),
1051- NodesRunning = rabbit_nodes :all_running (),
1051+ NodesRunning = rabbit_nodes :list_running (),
10521052 lists :filter (fun (Q ) ->
10531053 Pid = amqqueue :get_pid (Q ),
10541054 St = amqqueue :get_state (Q ),
@@ -1230,7 +1230,7 @@ is_in_virtual_host(Q, VHostName) ->
12301230- spec list (vhost :name ()) -> [amqqueue :amqqueue ()].
12311231list (VHostPath ) ->
12321232 All = rabbit_db_queue :get_all (VHostPath ),
1233- NodesRunning = rabbit_nodes :all_running (),
1233+ NodesRunning = rabbit_nodes :list_running (),
12341234 lists :filter (fun (Q ) ->
12351235 Pid = amqqueue :get_pid (Q ),
12361236 St = amqqueue :get_state (Q ),
@@ -1244,7 +1244,7 @@ list_down(VHostPath) ->
12441244 false -> [];
12451245 true ->
12461246 Alive = sets :from_list ([amqqueue :get_name (Q ) || Q <- list (VHostPath )]),
1247- NodesRunning = rabbit_nodes :all_running (),
1247+ NodesRunning = rabbit_nodes :list_running (),
12481248 rabbit_db_queue :filter_all_durable (
12491249 fun (Q ) ->
12501250 N = amqqueue :get_name (Q ),
@@ -1348,7 +1348,7 @@ emit_info_all(Nodes, VHostPath, Items, Ref, AggregatorPid) ->
13481348 rabbit_control_misc :await_emitters_termination (Pids ).
13491349
13501350collect_info_all (VHostPath , Items ) ->
1351- Nodes = rabbit_nodes :all_running (),
1351+ Nodes = rabbit_nodes :list_running (),
13521352 Ref = make_ref (),
13531353 Pids = [ spawn_link (Node , rabbit_amqqueue , emit_info_local , [VHostPath , Items , Ref , self ()]) || Node <- Nodes ],
13541354 rabbit_control_misc :await_emitters_termination (Pids ),
@@ -1736,10 +1736,8 @@ forget_node_for_queue(DeadNode, [H|T], Q) when ?is_amqqueue(Q) ->
17361736node_permits_offline_promotion (Node ) ->
17371737 case node () of
17381738 Node -> not rabbit :is_running (); % % [1]
1739- _ -> All = rabbit_nodes :all (),
1740- Running = rabbit_nodes :all_running (),
1741- lists :member (Node , All ) andalso
1742- not lists :member (Node , Running ) % % [2]
1739+ _ -> NotRunning = rabbit_nodes :list_not_running (),
1740+ lists :member (Node , NotRunning ) % % [2]
17431741 end .
17441742% % [1] In this case if we are a real running node (i.e. rabbitmqctl
17451743% % has RPCed into us) then we cannot allow promotion. If on the other
0 commit comments