[JAVA-815] applySkipLimit on getCount Created: 25/Apr/13  Updated: 14/May/14  Resolved: 04/Dec/13

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 2.11.0
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Rasmus Sundberg Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: driver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change

 Description   

The limit is ignored when calling this method on DBCollection:
getCount(DBObject query, DBObject fields, long limit, long skip, ReadPreference readPrefs). This will fix the issue, but not sure if this is intended behaviour or not:

< if ( limit > 0 )
< cmd.put( "limit" , limit );
< }

> if ( limit > 0 )

{ > cmd.put( "limit" , limit ); > cmd.put( "applySkipLimit", true ); > }

 Comments   
Comment by Jeffrey Yemin [ 04/Dec/13 ]

Hi Rasmus,

As I have not heard back from you in quite some time, I'm going to close this issue. Please re-open it if you can supply any further information.

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