Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1345

count ignores limit and skip

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.6
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Environment:
      db version v1.5.4-pre-, pdfile version 4.5
      Thu Jul 1 17:40:44 git version: 1d96219addad2a007375043b06731392fe388bbf
    • ALL

      > 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.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            kristina Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: