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: Fix crash when trying to remove with read-only index #506

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

abetomo
Copy link
Contributor

@abetomo abetomo commented Oct 20, 2024

The index read by view() is read-only.
When I did a remove() on that index, it crashed. (Segmentation fault (core dumped))

Although it is an invalid operation to do a remove() on a view() index, it is not a better way to crash, so we have fixed it to return an error.

abetomo and others added 2 commits October 20, 2024 12:55
The index read by view() is read-only.
When I did a remove() on that index, it crashed.

Although it is an invalid operation to do a remove() on a view() index, it is not a better way to crash,
so we have fixed it to return an error.
@ashvardanian ashvardanian merged commit c27c99d into unum-cloud:main-dev Oct 22, 2024
7 of 10 checks passed
@abetomo abetomo deleted the fix-crash-bug branch October 22, 2024 23:02
abetomo added a commit to abetomo/usearch that referenced this pull request Oct 22, 2024
@abetomo abetomo mentioned this pull request Oct 22, 2024
@abetomo
Copy link
Contributor Author

abetomo commented Oct 22, 2024

Thanks for the review.
I fixed the test as it was failing. #509

ashvardanian pushed a commit that referenced this pull request Oct 28, 2024
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