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

Allow registering notifiers in write transactions prior to the first change #6560

Merged
merged 1 commit into from
May 2, 2023

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented May 1, 2023

This fixes one of the common problems resulting from realm/realm-swift#4818, as it makes it so that adding new callbacks from within a notification callback will usually work even if the notification was triggered by beginning a write transaction. It still will not work if a previously invoked callback made any changes (which would be a very strange thing to do, but possible).

@tgoyne tgoyne self-assigned this May 1, 2023
@cla-bot cla-bot bot added the cla: yes label May 1, 2023
…change

This fixes one of the common problems resulting from
realm/realm-swift#4818, as it makes it so that adding
new callbacks from within a notification callback will _usually_ work even if
the notification was triggered by beginning a write transaction. It still will
not work if a previously invoked callback made any changes (which would be a
very strange thing to do, but possible).
@tgoyne tgoyne force-pushed the tg/notifier-in-write branch from 33256a5 to 220e0aa Compare May 1, 2023 21:15
@tgoyne tgoyne marked this pull request as ready for review May 1, 2023 22:24
@tgoyne
Copy link
Member Author

tgoyne commented May 1, 2023

CI failures are the pre-existing failures in the pbs -> flx migration tests.

@tgoyne tgoyne requested a review from ironage May 1, 2023 22:25
Copy link
Contributor

@ironage ironage left a comment

Choose a reason for hiding this comment

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

Excellent 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants