Skip to content

Fix sending update notifications #291

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

Merged
merged 3 commits into from
Mar 11, 2025
Merged

Fix sending update notifications #291

merged 3 commits into from
Mar 11, 2025

Conversation

simolus3
Copy link
Owner

@simolus3 simolus3 commented Mar 7, 2025

The id of databases as assigned by the worker are global (database.database.id), but there's also a per-connection id for databases (database.id).

These are not guaranteed to be the same, and a mismatch causes clients to ignore update notifications. This can be triggered if one client opens multiple connections and shares one with OpenAdditonalConnection, since connections obtained through OpenAdditonalConnection always have an id of zero.

@simolus3 simolus3 marked this pull request as ready for review March 11, 2025 09:10
@simolus3 simolus3 merged commit d475986 into main Mar 11, 2025
38 of 40 checks passed
@simolus3 simolus3 deleted the fix-update-ids branch March 11, 2025 09:48
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.

1 participant