diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2020-08-25 20:09:19 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-27 02:01:04 +0000 |
commit | c77fd1a19153af5cbf22355167298b0644c7c7cd (patch) | |
tree | e0355bc4a90b3053dab3dc7d8c9a54b9a6a13fe8 /src/mongo/db/concurrency | |
parent | e8b821f5783fef91430529fda3051828aee92aee (diff) | |
download | mongo-c77fd1a19153af5cbf22355167298b0644c7c7cd.tar.gz |
SERVER-50502 The lock manager dump logv2 message needs logv2::LogTruncation::Disabled set so that lock dumps are not truncated
Diffstat (limited to 'src/mongo/db/concurrency')
-rw-r--r-- | src/mongo/db/concurrency/lock_manager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/lock_manager.cpp b/src/mongo/db/concurrency/lock_manager.cpp index 84b3d67f482..e81bc2f46ff 100644 --- a/src/mongo/db/concurrency/lock_manager.cpp +++ b/src/mongo/db/concurrency/lock_manager.cpp @@ -846,7 +846,11 @@ LockManager::Partition* LockManager::_getPartition(LockRequest* request) const { void LockManager::dump() const { BSONArrayBuilder locks; _buildLocksArray(getLockToClientMap(getGlobalServiceContext()), true, nullptr, &locks); - LOGV2(20521, "lock manager dump", "addr"_attr = formatPtr(this), "locks"_attr = locks.arr()); + LOGV2_OPTIONS(20521, + logv2::LogTruncation::Disabled, + "lock manager dump", + "addr"_attr = formatPtr(this), + "locks"_attr = locks.arr()); } void LockManager::getLockInfoBSON(const std::map<LockerId, BSONObj>& lockToClientMap, |