Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amend ra_machine:snapshot_installed/4 #468

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Conversation

kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Sep 4, 2024

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.

Copy link
Member

@dumbbell dumbbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. @the-mikedavis, could you please take a look as well?

src/ra_machine.erl Outdated Show resolved Hide resolved
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.
@kjnilsson kjnilsson merged commit 6a80882 into main Sep 4, 2024
7 checks passed
@michaelklishin michaelklishin added this to the 2.14.0 milestone Sep 4, 2024
@michaelklishin michaelklishin deleted the snapshot-installed-4-tweaks branch September 4, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants