@@ -344,8 +344,8 @@ init([]) ->
344
344
Nodes = possibly_partitioned_nodes (),
345
345
startup_log (Nodes ),
346
346
Monitors = lists :foldl (fun (Node , Monitors0 ) ->
347
- pmon :monitor ({rabbit , Node }, Monitors0 )
348
- end , pmon :new (), Nodes ),
347
+ pmon :monitor ({rabbit , Node }, Monitors0 )
348
+ end , pmon :new (), Nodes ),
349
349
{ok , ensure_keepalive_timer (# state {monitors = Monitors ,
350
350
subscribers = pmon :new (),
351
351
partitions = [],
@@ -420,12 +420,12 @@ handle_cast({check_partial_partition, Node, Rep, NodeGUID, MyGUID, RepGUID},
420
420
fun () ->
421
421
case rpc :call (Node , rabbit , is_running , []) of
422
422
{badrpc , _ } -> ok ;
423
- _ ->
424
- rabbit_log :warning (" Received a 'DOWN' message"
425
- " from ~p but still can"
426
- " communicate with it ~n " ,
427
- [Node ]),
428
- cast (Rep , {partial_partition ,
423
+ _ ->
424
+ rabbit_log :warning (" Received a 'DOWN' message"
425
+ " from ~p but still can"
426
+ " communicate with it ~n " ,
427
+ [Node ]),
428
+ cast (Rep , {partial_partition ,
429
429
Node , node (), RepGUID })
430
430
end
431
431
end );
@@ -499,18 +499,18 @@ handle_cast({node_up, Node, NodeType},
499
499
rabbit_log :info (" rabbit on node ~p up~n " , [Node ]),
500
500
{AllNodes , DiscNodes , RunningNodes } = read_cluster_status (),
501
501
write_cluster_status ({add_node (Node , AllNodes ),
502
- case NodeType of
503
- disc -> add_node (Node , DiscNodes );
504
- ram -> DiscNodes
505
- end ,
506
- add_node (Node , RunningNodes )}),
502
+ case NodeType of
503
+ disc -> add_node (Node , DiscNodes );
504
+ ram -> DiscNodes
505
+ end ,
506
+ add_node (Node , RunningNodes )}),
507
507
ok = handle_live_rabbit (Node ),
508
508
Monitors1 = case pmon :is_monitored ({rabbit , Node }, Monitors ) of
509
- true ->
510
- Monitors ;
511
- false ->
512
- pmon :monitor ({rabbit , Node }, Monitors )
513
- end ,
509
+ true ->
510
+ Monitors ;
511
+ false ->
512
+ pmon :monitor ({rabbit , Node }, Monitors )
513
+ end ,
514
514
{noreply , maybe_autoheal (State # state {monitors = Monitors1 })};
515
515
516
516
handle_cast ({joined_cluster , Node , NodeType }, State ) ->
@@ -584,7 +584,7 @@ handle_info({mnesia_system_event,
584
584
State1 = case pmon :is_monitored ({rabbit , Node }, Monitors ) of
585
585
true -> State ;
586
586
false -> State # state {
587
- monitors = pmon :monitor ({rabbit , Node }, Monitors )}
587
+ monitors = pmon :monitor ({rabbit , Node }, Monitors )}
588
588
end ,
589
589
ok = handle_live_rabbit (Node ),
590
590
Partitions1 = lists :usort ([Node | Partitions ]),
@@ -893,4 +893,4 @@ startup_log([]) ->
893
893
rabbit_log :info (" Starting rabbit_node_monitor~n " , []);
894
894
startup_log (Nodes ) ->
895
895
rabbit_log :info (" Starting rabbit_node_monitor, might be partitioned from ~p~n " ,
896
- [Nodes ]).
896
+ [Nodes ]).
0 commit comments