[SERVER-20476] Mongos should forward negative ntoreturn to the shards using a find command with a positive limit rather than a positive ntoreturn Created: 17/Sep/15  Updated: 07/Oct/15  Resolved: 29/Sep/15

Status: Closed
Project: Core Server
Component/s: Querying, Sharding
Affects Version/s: None
Fix Version/s: 3.1.9

Type: Bug Priority: Major - P3
Reporter: David Storch Assignee: Misha Tyulenev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QuInt A (10/12/15)
Participants:

 Description   

Negative ntoreturn implies a limit (as well as implying singleBatch:true). Since we forward the query to the shards as a find command, and since find command offers a true limit parameter in addition to ntoreturn, we should pass the absolute value of ntoreturn as a find command limit.



 Comments   
Comment by Githook User [ 29/Sep/15 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-20476 convert negative ntoreturn to limit and singeBatch:true
Branch: master
https://github.com/mongodb/mongo/commit/94709a960d436ee9b381b667e4e018875542eb3f

Generated at Thu Feb 08 03:54:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.