[SERVER-5355] negative count limit brackets result to 0 Created: 22/Mar/12 Updated: 11/Jul/16 Resolved: 27/Apr/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Randolph Tan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
If a negative limit is provided to find, results are capped to the negation of that limit. If a negative limit is provided to count, 0 is returned.
|
| Comments |
| Comment by auto [ 27/Apr/12 ] | |||||||
|
Author: {u'login': u'', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: Applied patch from Peter Grant, added test for mongos and fixed limit 0 count. | |||||||
| Comment by Peter Grant [ 26/Apr/12 ] | |||||||
|
Attached patch to correct negative limit causing wrong count. | |||||||
| Comment by Peter Grant [ 24/Apr/12 ] | |||||||
|
If a query and a negative limit are provided to count, limit is ignored.
|