Skip to content

Commit

Permalink
chore(autoheal): drop minor but confusing optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
keynslug committed Dec 16, 2024
1 parent f93e5e2 commit f0caedb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/ekka_autoheal.erl
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,8 @@ handle_msg(Msg = {create_splitview, Node}, Autoheal = #autoheal{delay = Delay, t
case rpc:multicall(Nodes, ekka_mnesia, cluster_view, [], 30000) of
{Views, []} ->
SplitView = lists:sort(fun compare_view/2, lists:usort(Views)),
case SplitView of
[] -> ignore;
[{_, []}] -> ignore;
_Otherwise ->
Coordinator = coordinator(SplitView),
ekka_node_monitor:cast(Coordinator, {heal_partition, SplitView})
end,
Coordinator = coordinator(SplitView),
ekka_node_monitor:cast(Coordinator, {heal_partition, SplitView}),
Autoheal#autoheal{timer = undefined};
{_Views, BadNodes} ->
?LOG(critical, "Bad nodes found when autoheal: ~p", [BadNodes]),
Expand Down

0 comments on commit f0caedb

Please sign in to comment.