Skip to content

Commit

Permalink
fix rebase mess up
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Feb 13, 2024
1 parent b84b55e commit 522968c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ra_server_proc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1793,16 +1793,16 @@ maybe_record_cluster_change(#state{conf = #conf{cluster_name = ClusterName},
if (map_get(cluster_index_term, ServerStateA) =/=
map_get(cluster_index_term, ServerStateB) orelse
LeaderA =/= LeaderB) ->
MembersB = do_state_query(members, ServerStateB),
MembersB = ra_server:state_query(members, ServerStateB),
ok = ra_leaderboard:record(ClusterName, LeaderB, MembersB);
true ->
ok
end.

record_cluster_change(#state{conf = #conf{cluster_name = ClusterName},
server_state = ServerState}) ->
Leader = do_state_query(leader, ServerState),
Members = do_state_query(members, ServerState),
Leader = ra_server:state_query(leader, ServerState),
Members = ra_server:state_query(members, ServerState),
ok = ra_leaderboard:record(ClusterName, Leader, Members).

incr_counter(#conf{counter = Cnt}, Ix, N) when Cnt =/= undefined ->
Expand Down

0 comments on commit 522968c

Please sign in to comment.