title: Mongo DB eval nolock:true
body: <p><p>Hi,<br/>
   I am running the eval script from node js making the <code>nolock</code> true to disable the global lock.The same eval script i am running from the java also with nolock true.</p>
  
  <pre><code>String jsFunction = "function(){"
                            + "var uid = 12;"
                              + "return refreshList(uid,false);}";
  DBObject commandObj = new BasicDBObject();
  commandObj.put("eval", jsFunction);
  commandObj.put("nolock", true);
  CommandResult status =db.command(commandObj);
  db.eval("function (x, isoverwrite) { return refreshList(x, isoverwrite);}",                                                              [21,isoverwrite] ,{nolock:true}, function(err, result){
      });
  </code></pre>
  
  <p>In java while running the script there was no lock in db and i can able to run the query simultaneously.But in node js running the above code i am no able to do other process simulatneously.I am not able to see lock logs in mongodb console also. i don't know why the behaviour changes in both. I also tried using command query in node js but i got the same issue.</p>