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 library filter data direct access #2724

Merged
merged 4 commits into from
Mar 11, 2024

Conversation

mikiher
Copy link
Contributor

@mikiher mikiher commented Mar 9, 2024

Fixes #2693 (see details in the bug).

Replaces all direct access to Database.libraryFilterData (which caused the crash in the bug) with Database method calls that check if the cached libraryFilterData exists for the given libraryID, and perform a database query if it doesn't exist.

@mikiher mikiher marked this pull request as ready for review March 9, 2024 10:12
@mikiher mikiher changed the title Fix library filter data access Fix library filter data direct access Mar 9, 2024
@advplyr
Copy link
Owner

advplyr commented Mar 11, 2024

Thanks for digging into that. I updated those functions to only return the id because the filter data only stores the id and name.

@advplyr advplyr merged commit 77559d2 into advplyr:master Mar 11, 2024
1 check passed
@mikiher mikiher deleted the fix-library-filter-data-access branch March 12, 2024 08:56
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.

[Bug]: Server crashes
2 participants