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

Check count code path when using $min and $max

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.7.3
    • None
    • None
    • ALL

    Description

      s = ""
      function z()

      { return Math.floor( Math.random() * 1000 ); }

      for ( i=0; i<10000; i++ ){ db.foo2.insert(

      { s : s , a : z() , b : z()}

      ); }

      shard on a,b and make a couple of split points

      db.bar.find( { $min:

      { a: 0, b: 0}

      , $max:

      { a:1000, b:1000}

      , $query: {} } ).itcount()

      gives the correct count, but

      db.bar.find( { $min:

      { a: 0, b: 0}

      , $max:

      { a:1000, b:1000}

      , $query: {} } ).count()

      doesn't

      Attachments

        Activity

          People

            alerner Alberto Lerner
            alerner Alberto Lerner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: