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

count ignores limit and skip

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.6
    • None
    • Sharding
    • None
    • db version v1.5.4-pre-, pdfile version 4.5
      Thu Jul 1 17:40:44 git version: 1d96219addad2a007375043b06731392fe388bbf
    • ALL

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: