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

prefix.relationKeys set is not handled correctly on unlink which then breaks unlinkAll #183

Open
maritz opened this issue Apr 8, 2022 · 0 comments

Comments

@maritz
Copy link
Owner

maritz commented Apr 8, 2022

The set of prefix.relationKeys (where keys are stored under which the actual relations then are) is currently not handled properly on an unlink. It removes the entire thing.

Instead it should probably remove the ids from the prefix.relations set as it is now, then in an asynchronous check afterwards conditionally remove the prefix.relationKeys set, if the prefix.relations set is empty/gone.

@maritz maritz changed the title prefix.relationKeys set is not used and buggy anyways - should be removed prefix.relationKeys set is not handled correctly on unlink which then breaks unlinkAll Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant