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

reader: reimplementation the reader without _skip #39

Merged
merged 9 commits into from
Aug 17, 2023
Merged

reader: reimplementation the reader without _skip #39

merged 9 commits into from
Aug 17, 2023

Conversation

Gottox
Copy link
Owner

@Gottox Gottox commented Aug 16, 2023

Currently, there is an issue with a subtle incompatibility between
different iterators. The old SqshReader expected, that all blocks
(except the last one) are of the same size. This is not true for
SqshFileIterator when iterating over sparse files. The new
SqshReader2 does not have this limitation.

@Gottox Gottox force-pushed the reader2 branch 3 times, most recently from e82af48 to 31a6519 Compare August 16, 2023 20:57
Currently, there is an issue with a subtle incompatibility between
different iterators. The old SqshReader expected, that all blocks
(except the last one) are of the same size. This is not true for
SqshFileIterator when iterating over sparse files. The new
SqshReader2 does not have this limitation.
This fixes a bug when the data storage wrongfully points to the iterator
when it actually needs to read from the buffer.

A safeguard `assert()` call has been added to the `reader_fill_buffer()`
to detect this error in case of regression. Also a test case has been
added to reproduce this error.
@Gottox Gottox merged commit e2a58c4 into main Aug 17, 2023
9 checks passed
@Gottox Gottox deleted the reader2 branch August 21, 2023 19:59
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.

1 participant