[SERVER-5603] shell transmits batchSize parameter as options parameter (2.0 only, fixed in 2.1) Created: 14/Apr/12  Updated: 11/Jul/16  Resolved: 17/Jan/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Example symptom

> c.find().batchSize(2).explain()
Fri Apr 13 17:00:08 uncaught exception: error: {
	"$err" : "tailable cursor requested on non capped collection",
	"code" : 13051
}

Cause/fix

         if ( argc > 9 && JSVAL_IS_NUMBER( argv[9] ) )
-            c.setProperty( obj , "_options" , argv[8] );
+            c.setProperty( obj , "_options" , argv[9] );
         else
             c.setProperty( obj , "_options" , JSVAL_ZERO );

Seems to have been fixed by this commit in 2.1
<https://github.com/mongodb/mongo/commit/b9d4ce58>


Generated at Thu Feb 08 03:09:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.