From 522968c94b872328ec5e68762767e08b98b54d80 Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Tue, 13 Feb 2024 13:38:22 +0000 Subject: [PATCH] fix rebase mess up --- src/ra_server_proc.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ra_server_proc.erl b/src/ra_server_proc.erl index aeed30e8..e35658de 100644 --- a/src/ra_server_proc.erl +++ b/src/ra_server_proc.erl @@ -1793,7 +1793,7 @@ 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 @@ -1801,8 +1801,8 @@ maybe_record_cluster_change(#state{conf = #conf{cluster_name = ClusterName}, 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 ->