Skip to content

play: exit if binary version mismatches latest epoch's#649

Closed
matthew-levan wants to merge 2 commits into
developfrom
msl/vere-diff-in-play
Closed

play: exit if binary version mismatches latest epoch's#649
matthew-levan wants to merge 2 commits into
developfrom
msl/vere-diff-in-play

Conversation

@matthew-levan

Copy link
Copy Markdown
Contributor

The invariant that replay should not occur across binary versions was previously unenforced. This enforces it by setting a flag in the disk struct to indicate version mismatch between ourselves and the latest epoch's binary version number (saved in vere.txt).

Then, in the synchronous replay function, we exit if the same flag is set.

Questions:

  • Should we instruct the user to downgrade to a previous version before exit?
  • Should we make _disk_epoc_meta public (i.e. u3_disk_epoc_meta) so we can provide the specific version to revert to in the error message?

Note: Whitespace is cleaned up here automatically thanks to my editor and I don't see why not to include them in this PR. Happy to revert with request though as I don't really care either way.

@matthew-levan matthew-levan requested a review from a team as a code owner May 20, 2024 20:54
@matthew-levan matthew-levan requested a review from joemfb May 24, 2024 19:23
@joemfb

joemfb commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator

Superseded by #860

@joemfb joemfb closed this Aug 22, 2025
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.

2 participants