summaryrefslogtreecommitdiff
path: root/src/mongo/db/introspect.cpp
diff options
context:
space:
mode:
authorXiangyu Yao <xiangyu.yao@mongodb.com>2018-09-04 15:42:43 -0400
committerXiangyu Yao <xiangyu.yao@mongodb.com>2018-09-07 23:13:42 -0400
commitb5ca922655a1d0a438c39c38b2c4434016069cb7 (patch)
tree514a178784e763803db5cad8d72c56fc77518a91 /src/mongo/db/introspect.cpp
parenta8fe1d82c3c5484c7e8a6402a34bc45ea11d06f1 (diff)
downloadmongo-b5ca922655a1d0a438c39c38b2c4434016069cb7.tar.gz
SERVER-26854 LockStats for sub-operations should not include wait time for previous operations
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r--src/mongo/db/introspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp
index 493f80ccc4f..778aa4fb3f3 100644
--- a/src/mongo/db/introspect.cpp
+++ b/src/mongo/db/introspect.cpp
@@ -90,7 +90,7 @@ void profile(OperationContext* opCtx, NetworkOp op) {
{
Locker::LockerInfo lockerInfo;
- opCtx->lockState()->getLockerInfo(&lockerInfo);
+ opCtx->lockState()->getLockerInfo(&lockerInfo, CurOp::get(opCtx)->getLockStatsBase());
CurOp::get(opCtx)->debug().append(*CurOp::get(opCtx), lockerInfo.stats, b);
}