[SERVER-1345] count ignores limit and skip Created: 01/Jul/10  Updated: 12/Jul/16  Resolved: 22/Jul/10

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 1.5.6

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

db version v1.5.4-pre-, pdfile version 4.5
Thu Jul 1 17:40:44 git version: 1d96219addad2a007375043b06731392fe388bbf


Operating System: ALL
Participants:

 Description   

> use p
switched to db p
> for(i=0;i<10;i++){db.q.insert(

{"foo":"bar"}

);}
> db.q.find().limit(2).count()
10
> db.q.find().limit(2).count(true)
10

The second one should be 2.


Generated at Thu Feb 08 02:56:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.