[SERVER-5151] sharded count can return a negative value if a negative limit is supplied Created: 29/Feb/12 Updated: 11/Jul/16 Resolved: 02/Aug/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| 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 | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
On mongod if a count is < 0 we bracket it up to 0. On mongos we just take the value of applySkipLimit, which can be < 0 if limit < 0.
|
| Comments |
| Comment by Aaron Staple [ 02/Aug/12 ] |
|
See |
| Comment by Kevin Matulef [ 28/Jul/12 ] |
|
I think this was fixed by patch for |