diff --git a/src/ra_aux.erl b/src/ra_aux.erl index 6a30c3b8..e28b37ee 100644 --- a/src/ra_aux.erl +++ b/src/ra_aux.erl @@ -10,6 +10,7 @@ effective_machine_version/1, leader_id/1, last_applied/1, + current_term/1, members_info/1, overview/1, log_last_index_term/1, @@ -41,6 +42,10 @@ leader_id(State) -> last_applied(State) -> maps:get(?FUNCTION_NAME, State). +-spec current_term(ra_aux:internal_state()) -> ra_term(). +current_term(State) -> + maps:get(?FUNCTION_NAME, State). + -spec members_info(ra_aux:internal_state()) -> ra_cluster(). members_info(State) -> ra_server:state_query(?FUNCTION_NAME, State).