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

fix(paxos): re-commit logs even when there are no checkpoints #1639

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

shadaj
Copy link
Member

@shadaj shadaj commented Jan 9, 2025

Technically the old code was correct too because accepted_logs would always have something, but this is a bit clearer I think.

Copy link

cloudflare-workers-and-pages bot commented Jan 9, 2025

Deploying hydroflow with  Cloudflare Pages  Cloudflare Pages

Latest commit: a82cf31
Status: ✅  Deploy successful!
Preview URL: https://4b30414d.hydroflow.pages.dev
Branch Preview URL: https://pr1639.hydroflow.pages.dev

View logs

@shadaj shadaj requested a review from davidchuyaya January 9, 2025 22:45
@davidchuyaya
Copy link
Contributor

So max() outputs either the value or nothing, and then into_singleton() turns the nothing into None?

@shadaj
Copy link
Member Author

shadaj commented Jan 10, 2025

So max() outputs either the value or nothing, and then into_singleton() turns the nothing into None?

Exactly!

@davidchuyaya
Copy link
Contributor

Sounds good, ship it

@shadaj shadaj merged commit 0bc253f into main Jan 10, 2025
17 checks passed
@shadaj shadaj deleted the pr1639 branch January 10, 2025 21: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.

2 participants