Skip to content

Fix: Fix crash when trying to remove with read-only index - #506

Merged
ashvardanian merged 2 commits into
unum-cloud:main-devfrom
abetomo:fix-crash-bug
Oct 22, 2024
Merged

ashvardanian merged 2 commits into
unum-cloud:main-devfrom
abetomo:fix-crash-bug

Conversation

@abetomo

@abetomo abetomo commented Oct 20, 2024

Copy link
Copy Markdown
Contributor

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
@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

abetomo commented Oct 22, 2024

Copy link
Copy Markdown
Contributor Author

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