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 implicit write operations in EntityFilterCollection #76

Merged
merged 1 commit into from
May 11, 2022

Conversation

MGilleronFJ
Copy link
Contributor

EntityFilterCollection.Exists is supposed to be a reading operation, but it was internally creating the group filter if it wasn't found, which is a write operation, and can cause issues in parallel code.
This PR introduces TryGetGroupFilter to obtain group filters, and renames GetGroupFilter to GetOrCreateGroupFilter to reduce mistakes.

Add `TryGetGroupFilter`
Fix `Exists` to use `TryGetGroupFilter` instead of `GetGroupFilter`
Rename `GetGroupFilter` => `GetOrCreateGroupFilter` for clarity
@sebas77 sebas77 merged commit deb5ce0 into sebas77:master May 11, 2022
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.

2 participants