Skip to content

Instantly share code, notes, and snippets.

@scotthernandez
Created January 3, 2011 17:30
Show Gist options
  • Save scotthernandez/763715 to your computer and use it in GitHub Desktop.
Save scotthernandez/763715 to your computer and use it in GitHub Desktop.
> db.runCommand({$eval:function(){return db.currentOp();}, nolock:true})
{
"retval" : {
"inprog" : [
{
"opid" : 343703,
"active" : true,
"waitingForLock" : false,
"secs_running" : 0,
"op" : "query",
"ns" : "?est.decks",
"query" : {
"$eval" : function cf__1__f_() {
return db.currentOp();
},
"nolock" : true
},
"client" : "127.0.0.1:53921",
"desc" : "conn"
}
]
},
"ok" : 1
}
> db.runCommand({$eval:function(){return db.currentOp();}, nolock:false})
{
"retval" : {
"inprog" : [
{
"opid" : 343705,
"active" : true,
"lockType" : "write",
"waitingForLock" : false,
"secs_running" : 0,
"op" : "query",
"ns" : "test",
"query" : {
"$eval" : function cf__2__f_() {
return db.currentOp();
},
"nolock" : false
},
"client" : "127.0.0.1:53921",
"desc" : "conn"
}
]
},
"ok" : 1
}
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment