marcello3d/node-mongolian — Issue #70: eval, nolock: true
Author: qbert65536
Created: 2011-12-27 18:11:07+00:00
State: open

For MongolianDB.prototype.eval it would be nice to have a way to specify nolock , and have the default be nolock = true since it's rare you would actually want it to lock.

I just changed

var command = { $eval:new bson.Code(execFunction, execFunction.scope || {}) }

to read

var command = { $eval:new bson.Code(execFunction, execFunction.scope || {}), nolock: true }