[SERVER-58530] Remove unused code related to nReturnedSoFar() Created: 14/Jul/21  Updated: 29/Oct/23  Resolved: 19/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Task Priority: Major - P3
Reporter: Irina Yatsenko (Inactive) Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QE 2021-12-27, QE 2022-01-10, QE 2022-01-24
Participants:

 Description   

The code was used for legacy OP_GET_MORE.



 Comments   
Comment by David Storch [ 19/Jan/22 ]

It turns out that ClientCursor objects on mongod and ClusterClientCursor objects on mongos still need to track the number of documents returned so far by the cursor, even though this information no longer needed for OP_GET_MORE. It is now used exclusively for reporting in $currentOp output. Therefore, I've narrowed the scope of this ticket to only be about getting rid of nReturnedSoFar()}-related code that is truly dead. I've changed the title of the ticket accordingly.

Comment by Githook User [ 19/Jan/22 ]

Author:

{'name': 'David Storch', 'email': 'david.storch@mongodb.com', 'username': 'dstorch'}

Message: SERVER-58530 Remove unused code related to nReturnedSoFar()
Branch: master
https://github.com/mongodb/mongo/commit/d91386c870e630929899dfd8fffd9b6d6658f482

Generated at Thu Feb 08 05:44:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.