-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Duplicate chunks throw an error #51
Comments
This was referenced Jun 1, 2022
Let me know once the PR is ready and I'll take a look. I wonder if this also affects the Rust code (and thus every other library). |
Did you mean to close this? |
No! I didn't think merging the PR into a fork would close it. PR is #54 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you
setContent
with repetitive data on a collection, an error is thrown when trying to get that content again.It looks like the index list and/or chunks created here are the issue (the indices are pointers at the original chunks array, but the chunks array is mutated here, so the pointers are incorrect?)
The following tests illustrate the issue (large files are fine, small files are fine, but repetitive data (that would result in chunks that would be deduplicated) throws the error
I'll do a PR with a fix shortly
The text was updated successfully, but these errors were encountered: