rabbitmq / ra

A Raft implementation for Erlang and Elixir that strives to be efficient and make it easier to use multiple Raft clusters in a single system.
Other
813 stars 96 forks source link

Amend ra_machine:snapshot_installed/4 #468

Closed kjnilsson closed 1 month ago

kjnilsson commented 1 month ago

Instead of passing the plain old version we build a full snapshot meta so that we can also compare index, term and membership as well as the machine version.

Changed the order of arguments.

Removed the optional snapshot_installed/2 callback but retained the fallback call in ra_machine in case it is still implemented somwhere.