summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-01-15 15:59:44 +0000
committerevergreen <evergreen@mongodb.com>2020-01-15 15:59:44 +0000
commitb4aec2e705d1253c6ec7ee9e91ff091bf742df81 (patch)
treee94fffe537fcbb63429026f391150d3d2aabc1a0
parentc0c5a486846f9d0b4a0ee6db6f58df6a127e6da7 (diff)
downloadmongo-b4aec2e705d1253c6ec7ee9e91ff091bf742df81.tar.gz
SERVER-43910 lockInfo command output includes Locker::getDebugInfo()
(cherry picked from commit 078f31ba54768fa5945c122257e740f1196defe8)
-rw-r--r--src/mongo/db/concurrency/lock_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/concurrency/lock_manager.cpp b/src/mongo/db/concurrency/lock_manager.cpp
index 58321d1e50b..d5524799cfc 100644
--- a/src/mongo/db/concurrency/lock_manager.cpp
+++ b/src/mongo/db/concurrency/lock_manager.cpp
@@ -866,6 +866,7 @@ void LockManager::_buildBucketBSON(const LockRequest* iter,
info.append("convertMode", modeName(iter->convertMode));
info.append("enqueueAtFront", iter->enqueueAtFront);
info.append("compatibleFirst", iter->compatibleFirst);
+ info.append("debugInfo", iter->locker->getDebugInfo());
LockerId lockerId = iter->locker->getId();
std::map<LockerId, BSONObj>::const_iterator it = lockToClientMap.find(lockerId);