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

shell transmits batchSize parameter as options parameter (2.0 only, fixed in 2.1)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL

      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>

            Assignee:
            Unassigned Unassigned
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: