-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.8.3, 2.0.0, 2.4.7
-
Component/s: Querying
-
None
-
ALL
This came from http://groups.google.com/group/mongodb-user/browse_thread/thread/d8940067b89cb839
$maxScan does not return expected results when it is >100
To reproduce:
> for(i=0; i<50000; i++){db.mxscan.save(
);}
> count = 0; db.mxscan.find()._addSpecial( "$maxScan" , 101 ).forEach( function
50000
> count = 0; db.mxscan.find()._addSpecial( "$maxScan" , 100 ).forEach( function { count += 1; }
); print(count);
100