Check count code path when using $min and $max

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: 1.7.3
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Alberto Lerner (Inactive)
            Reporter:
            Alberto Lerner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: