diff options
author | auto-revert-processor <dev-prod-dag@mongodb.com> | 2023-05-18 01:59:49 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-18 02:54:21 +0000 |
commit | a741f91c4c09913424751730aabccd594e94ab78 (patch) | |
tree | 93a23e52e3a8d077bea2f722912a88a6e270a8dc /buildscripts/gdb | |
parent | d7bf13d97da047abfe9098a6b5f98678e89cd987 (diff) | |
download | mongo-master.tar.gz |
Revert "SERVER-77224 Rename lock_state.h/.cpp to locker_impl.h/.cpp to match the class name"HEADmaster
This reverts commit de55cd2ac227dcc8cae2fd021abc291e86b2abb2.
Diffstat (limited to 'buildscripts/gdb')
-rw-r--r-- | buildscripts/gdb/mongo.py | 2 | ||||
-rw-r--r-- | buildscripts/gdb/mongo_lock.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/buildscripts/gdb/mongo.py b/buildscripts/gdb/mongo.py index 8f20f1caa85..c7ea555513e 100644 --- a/buildscripts/gdb/mongo.py +++ b/buildscripts/gdb/mongo.py @@ -584,6 +584,8 @@ class MongoDBDumpLocks(gdb.Command): try: # Call into mongod, and dump the state of lock manager # Note that output will go to mongod's standard output, not the debugger output window + # Do not call mongo::getGlobalLockManager() due to the compiler optimizing this function in a very weird way + # See SERVER-72816 for more context gdb.execute( "call mongo::LockManager::get((mongo::ServiceContext*) mongo::getGlobalServiceContext())->dump()", from_tty=False, to_string=False) diff --git a/buildscripts/gdb/mongo_lock.py b/buildscripts/gdb/mongo_lock.py index a7f7e271926..d05acaf6779 100644 --- a/buildscripts/gdb/mongo_lock.py +++ b/buildscripts/gdb/mongo_lock.py @@ -325,6 +325,8 @@ def find_lock_manager_holders(graph, thread_dict, show): locker_ptr_type = gdb.lookup_type("mongo::LockerImpl").pointer() + # Do not call mongo::getGlobalLockManager() due to the compiler optimizing this function in a very weird way + # See SERVER-72816 for more context lock_head = gdb.parse_and_eval( "mongo::LockManager::get((mongo::ServiceContext*) mongo::getGlobalServiceContext())->_getBucket(resId)->findOrInsert(resId)" ) |