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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.1.2
    • Shell

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: