[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: |