Can't count() from maxTimeMS helper

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.6.0-rc3
    • Affects Version/s: 2.6.0-rc2
    • Component/s: Shell
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      trying to find().count() with maxTimeMS fails from the shell:

      db.test.find( { x: {$gt : 0 } }).maxTimeMS(10).count()
      2014-03-25T09:19:20.702+1100 count failed: {
      	"ok" : 0,
      	"errmsg" : "no such command option $maxTimeMS; use maxTimeMS instead"
      } at src/mongo/shell/query.js:191
      

      The same command when run will work as expected:

      > db.test.runCommand( "count", {query : {x:{$gt:0}}, maxTimeMS : 10 } )
      { "code" : 50, "ok" : 0, "errmsg" : "50 operation exceeded time limit" }
      

              Assignee:
              Unassigned
              Reporter:
              Andre de Frere
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: