Skip to content

Commit

Permalink
Merge pull request #273 from tomyouyou/illegal_snapshots
Browse files Browse the repository at this point in the history
Incorrect index version pairs can lead to nodes taking unrecoverable snapshots
  • Loading branch information
kjnilsson authored May 9, 2022
2 parents 44e04cb + a1b9489 commit c9b2178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ra_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,7 @@ apply_with({Idx, Term, {noop, CmdMeta, NextMacVer}},
%% enable cluster change if the noop command is for the current term
Cfg = Cfg0#cfg{effective_machine_version = NextMacVer,
%% record this machine version "term"
machine_versions = [{Idx, MacVer} | MacVersions],
machine_versions = [{Idx, NextMacVer} | MacVersions],
effective_machine_module = Module},
State = State0#{cfg => Cfg,
cluster_change_permitted => ClusterChangePerm},
Expand Down

0 comments on commit c9b2178

Please sign in to comment.