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.
Mongos should forward negative ntoreturn to the shards using a find command with a positive limit rather than a positive ntoreturn
- Assignee:
-
Misha Tyulenev (Inactive)
- Reporter:
-
David Storch
- Votes:
-
0 Vote for this issue - Watchers:
-
3 Start watching this issue
- Created:
- Updated:
- Resolved: