[SERVER-6375] Can't pass nolock:true to eval via shell helper Created: 10/Jul/12  Updated: 04/Jun/19  Resolved: 04/Jun/19

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.1.2
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: neweng, platforms-re-triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-599 Add nolock option to doEval() Closed
Participants:

 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.



 Comments   
Comment by Nathan Brown (Inactive) [ 04/Jun/19 ]

db.eval was deprecated with 3.0 and will be removed in 4.2

Generated at Thu Feb 08 03:11:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.