Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37387

mongo_lock.py graph displays lock request type for LockManager locks

    • Fully Compatible
    • ALL
    • STM 2018-10-22
    • 1

      Changes for SERVER-34738 now display the lock requester's mode. We need to display the lock holder's mode as well.

      We should change the following

                  print("MongoDB Lock at {} ({}) held by {} waited on by {}".format(
                      lock_head, lock_request["mode"], lock_holder, lock_waiter))
      

      to

                 # Code to set the lock_mode needs to be added
                  print("MongoDB Lock at {} ({}) held by {} waited on by {} ({})".format(
                      lock_head, lock_mode, lock_holder, lock_waiter, lock_request["mode"]))
      

      Other references to lock_request["mode"] should be modified as well, such that the mode is properly associated to holder.

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: