Skip to content

Commit abffcb8

Browse files
author
Alex Valiushko
committed
fix: initial ra_state insert does not include voter status
1 parent e15c227 commit abffcb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ra_server_proc.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ init(Config) ->
271271
do_init(#{id := Id,
272272
cluster_name := ClusterName} = Config0) ->
273273
Key = ra_lib:ra_server_id_to_local_name(Id),
274-
true = ets:insert(ra_state, {Key, init}),
274+
true = ets:insert(ra_state, {Key, init, unknown}),
275275
process_flag(trap_exit, true),
276276
Config = #{counter := Counter,
277277
system_config := SysConf} = maps:merge(config_defaults(Id),

0 commit comments

Comments
 (0)