applySkipLimit on getCount

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.11.0
    • Component/s: API
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      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 ); > }

            Assignee:
            Unassigned
            Reporter:
            Rasmus Sundberg
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: