-
Notifications
You must be signed in to change notification settings - Fork 170
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
RCORE-2115 Fix multiple backlinks created by dictionary #7677
Conversation
…f mixed creating multiple backlinks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
CHANGELOG.md
Outdated
@@ -7,6 +7,7 @@ | |||
### Fixed | |||
* <How do the end-user experience this issue? what was the impact?> ([#????](https://github.com/realm/realm-core/issues/????), since v?.?.?) | |||
* Accessing App::current_user() from within a notification produced by App:switch_user() (which includes notifications for a newly logged in user) would deadlock ([#7670](https://github.com/realm/realm-core/issues/7670), since v14.6.0). | |||
* Inserting the same typed link to the same key in a dictionary more than once would incorrectly create multiple backlinks to the object. This did not appear to cause any crashes later, but would have affecting explicit backlink count queries o@links.@count`) and possibly notifications ([#7676](https://github.com/realm/realm-core/issues/7676) since v14.5.2). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you mean to have ` before o@links.@count?
Pull Request Test Coverage Report for Build james.stone_540Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn. I am sure I had this in mind when making the change. We recently had this issue: #7384. Anyway - shit happens. Thank you for fixing this.
* fix inserting a link multiple times to the same key in a dictionary of mixed creating multiple backlinks
Fixes #7676
This regression was caused by #7523
I couldn't cause any hard crashes or exceptions so it is hard to say that this has been observed outside of niche query cases.
This is because we have previously chosen to ignore nullifying backlinks that point to an object that no longer exists, since #6638
☑️ ToDos
bindgen/spec.yml
, if public C++ API changed