Can't pass nolock:true to eval via shell helper

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.1.2
    • Component/s: Shell
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As seen in the docs:

      http://www.mongodb.org/display/DOCS/Server-side+Code+Execution#Server-sideCodeExecution-Storingfunctionsserverside

      runCommand can pass the 'nolock' argument to 'eval':

      db.runCommand({$eval: function() {return 42;}, nolock: true})
      

      But the shell helper for 'eval' can't pass options to the command, only arguments to the actual function being evaluated.

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: