[CXX-699] Queries may return incomplete result sets due to incorrect calculation of nToReturn Created: 07/Oct/15  Updated: 19/Oct/15  Resolved: 15/Oct/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: legacy-1.0.5
Fix Version/s: legacy-1.0.6

Type: Bug Priority: Major - P3
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

The calculation of nToReturn committed as part of CXX-176 was incorrect. As such, we are submitting negative nToReturn values, which prevents the server from creating a cursor after returning MaxBytesToReturnToClient with of documents.



 Comments   
Comment by Githook User [ 15/Oct/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: CXX-699 compute nextBatchSize() correctly
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/b4501defc93aee2386365aabb2df2674e3bad6e6

Comment by Adam Midvidy [ 07/Oct/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/321

Generated at Wed Feb 07 22:00:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.