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

Refactor pending diff handling: don't miss any diffs #536

Merged
merged 21 commits into from
Dec 12, 2024

Conversation

lucksus
Copy link
Member

@lucksus lucksus commented Dec 9, 2024

This coalesces the new commit debouncing code introduced in #533 with the old pending diff handling in a proper way, as to not accidentally miss committing any diffs.

Ad4mDb::get_pending_diffs() and Ad4mDb::clear_pending_diffs() now work with the DB ids of each of the diffs, so that we only remove diffs that actually were committed, avoiding race conditions between different threads dealing with pending diffs.

@jhweir jhweir merged commit 8bfb36c into dev Dec 12, 2024
2 checks passed
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