|
The optional argument accepted by db.currentOp() can be "true" (documented) or it can be a predicate expression (not documented). If a predicate expression is passed, the result is filtered to those operations match the predicate. Example usage:
> db.currentOp({secs_running:{$gt:1}})
|
{
|
"inprog" : [
|
{
|
"opid" : 64,
|
"active" : true,
|
"secs_running" : 2,
|
"op" : "query",
|
"ns" : "test",
|
"query" : {
|
"$eval" : "sleep(10000)"
|
},
|
"client" : "127.0.0.1:56082",
|
"desc" : "conn2",
|
"threadId" : "0x110395000",
|
"connectionId" : 2,
|
"locks" : {
|
"^" : "W"
|
},
|
"waitingForLock" : false,
|
"numYields" : 0,
|
"lockStats" : {
|
"timeLockedMicros" : {
|
|
},
|
"timeAcquiringMicros" : {
|
"R" : NumberLong(0),
|
"W" : NumberLong(2)
|
}
|
}
|
}
|
]
|
}
|
>
|
|