-
Notifications
You must be signed in to change notification settings - Fork 168
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-821 Update user metadata atomically #4876
Conversation
5896019
to
5b59473
Compare
REALM_ASSERT(state == State::Removed); | ||
return; | ||
case State::LoggedIn: | ||
if (m_state == State::LoggedIn) { |
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.
This is always true because the switch is already on m_state
. Can you double check the logic in each of these cases, did you mean to switch on state
instead?
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.
You're right. I've simplified this a bunch and added a unit test that makes sure these code paths are exercised.
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.
LGTM. Just needs a change log note about the race that this fixes 👍
12510df
to
0bbecf8
Compare
What, How & Why?
☑️ ToDos