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

Fix an invalid use of frozen Realms in client reset #6230

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Jan 24, 2023

This turned out to not be the source of the problem I was looking in to, but get_realm(config, VersionID()) does strange and invalid things that appears to work in simple cases but can cause weird problems. VersionID() is turned into an actual version only when acquiring a read lock, and won't turn into the same version every time for a given frozen Realm.

This turned out to not be the source of the problem I was looking in to, but
`get_realm(config, VersionID())` does strange and invalid things that appears
to work in simple cases but can cause weird problems. VersionID() is turned
into an actual version only when acquiring a read lock, and won't turn into the
same version every time for a given frozen Realm.
@tgoyne tgoyne requested a review from ironage January 24, 2023 18:34
@tgoyne tgoyne self-assigned this Jan 24, 2023
@cla-bot cla-bot bot added the cla: yes label Jan 24, 2023
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.

👍

@tgoyne tgoyne merged commit 792fd5b into master Jan 24, 2023
@tgoyne tgoyne deleted the tg/client-reset-frozen-realm branch January 24, 2023 19:31
@bmunkholm
Copy link
Contributor

@tgoyne Not possible to easily add a test for I assume?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
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.

4 participants