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

state: Implement a serial number for states. #355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mathieu-plak
Copy link
Contributor

  • Basic idea is to have a "generation number" like serial, that will let us deal with maintenance by detecting compacted / aggregated state.

  • Initial serial is the repository id to avoid any race issues with concurrent first time backups.

* Basic idea is to have a "generation number" like serial, that will let
us deal with maintenance by detecting compacted / aggregated state.

* Initial serial is the repository id to avoid any race issues with
concurrent first time backups.
Copy link
Contributor

@omar-polo omar-polo left a comment

Choose a reason for hiding this comment

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

lgtm

if _, err := w.Write(checksum[:]); err != nil {
return fmt.Errorf("failed to write checksum: %w", err)
}
fmt.Printf("Serializing serial : %s\n", ls.Metadata.Serial)
Copy link
Contributor

Choose a reason for hiding this comment

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

debugging leftover?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yessir. Will remove.

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