Skip to content

Commit

Permalink
Remove config refresh API
Browse files Browse the repository at this point in the history
Summary:
The config refresh API is no longer needed as non-config-based RAFT
deployments have not been supported for over two years now. Removal
of the implementation is pending a future refactoring.

Differential Revision: D59698260

fbshipit-source-id: ad3146dd2faed418a228f1bfebde7204f6be9f9a
  • Loading branch information
hsun324 authored and facebook-github-bot committed Jul 15, 2024
1 parent 1a8269c commit c0f1367
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/wa_raft_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
promote/3,
promote/4,
resign/1,
refresh_config/1,
adjust_membership/3,
adjust_membership/4,
handover/1,
Expand Down Expand Up @@ -415,10 +414,6 @@ promote(Pid, Term, Force, Config) ->
resign(Pid) ->
gen_statem:call(Pid, ?RESIGN_COMMAND, ?RAFT_RPC_CALL_TIMEOUT()).

-spec refresh_config(Name :: gen_statem:server_ref()) -> {ok, Pos :: wa_raft_log:log_pos()} | wa_raft:error().
refresh_config(Name) ->
gen_statem:call(Name, ?ADJUST_MEMBERSHIP_COMMAND(refresh, undefined, undefined), ?RAFT_RPC_CALL_TIMEOUT()).

-spec adjust_membership(
Name :: gen_statem:server_ref(),
Action :: add | remove | add_witness | remove_witness,
Expand Down

0 comments on commit c0f1367

Please sign in to comment.