summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEddie Louie <eddie.louie@mongodb.com>2017-02-28 12:13:27 -0500
committerEddie Louie <eddie.louie@mongodb.com>2017-04-13 21:13:11 -0400
commit3835d1a8f710617a3a698572b3f9566db93686b1 (patch)
treea5a713a7bdbbab8d8a161204475955753ae58d87
parent870b6cb81442fd9767d37584dc6aceac08d76d7c (diff)
downloadmongo-3835d1a8f710617a3a698572b3f9566db93686b1.tar.gz
SERVER-27866 Add threadId dump in hex base from globalLockManager for PENDING locks
(cherry picked from commit 5a3082bc52cdcf8769021aa9256daabd43162a53)
-rw-r--r--src/mongo/db/concurrency/lock_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/lock_manager.cpp b/src/mongo/db/concurrency/lock_manager.cpp
index c8d5c4bc4dd..f90141e79be 100644
--- a/src/mongo/db/concurrency/lock_manager.cpp
+++ b/src/mongo/db/concurrency/lock_manager.cpp
@@ -912,7 +912,8 @@ void LockManager::_dumpBucket(const LockBucket* bucket) const {
for (const LockRequest* iter = lock->conflictList._front; iter != nullptr;
iter = iter->next) {
std::stringstream threadId;
- threadId << iter->locker->getThreadId();
+ threadId << iter->locker->getThreadId() << " | " << std::showbase << std::hex
+ << iter->locker->getThreadId();
sb << '\t' << "LockRequest " << iter->locker->getId() << " @ " << iter->locker << ": "
<< "Mode = " << modeName(iter->mode) << "; "
<< "Thread = " << threadId.str() << "; "