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)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    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>

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: