-
Notifications
You must be signed in to change notification settings - Fork 543
CXX-2650 Fix limit value in open_download_stream #927
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
CXX-2650 Fix limit value in open_download_stream #927
Conversation
I've just add a unit test to demonstrate the issue. |
4b2cfd0
to
fbee925
Compare
Hi @chino540off, thank you for the contribution! We are happy to have your fix. Would you please submit the PR to be merged into the Once again, thank you! |
fbee925
to
88edfe5
Compare
Hello @kkloberdanz, you're welcome. The branch has been rebased over master. Please tell me if it misses something. cheers, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
@kkloberdanz some steps are failing in the CI ( |
Hi @chino540off, the failing test is a known broken test. We are working on fixing it, but it is not a blocker for your PR. @kevinAlbs is planning to review your PR once he has the time. After we get Kevin's review, we can proceed with this PR. Thank you for you patience! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution @chino540off.
* [mongocxx/gridfs/bucket] Fix the cursor limit value in _open_download_stream * [mongocxx/gridfs/utest] Add a unit test to ensure limit value --------- Co-authored-by: Olivier Detour <[email protected]>
Hello,
Here is a patch to fix the limit value computed to returned the correct number of chunks in a partial download.
Without this patch, a
download::read
on 2 chunks throws an execption because thechunks
cursor was exhausted.Cheers