Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.4.0-rc0
-
None
-
Query
-
Fully Compatible
-
ALL
-
Description
For read contexts we set the curop ns field at Context construction time.
For write, we set the field when we "enter" the lock, which means while the lock is still queued you get a CurOp document that looks something like this:
{
|
"opid" : 119,
|
"active" : false,
|
"op" : "update",
|
"ns" : "",
|
"query" : {
|
"$where" : function () { sleep(150); }
|
},
|
"client" : "127.0.0.1:49343",
|
"desc" : "conn3",
|
"threadId" : "0x7fb1720af700",
|
"connectionId" : 3,
|
"locks" : {
|
"^test" : "W"
|
},
|
"waitingForLock" : true,
|
"numYields" : 0,
|
"lockStats" : {
|
"timeLockedMicros" : {
|
|
},
|
"timeAcquiringMicros" : {
|
|
}
|
}
|
}
|