mongo_lock.py graph displays lock request type for LockManager locks

XMLWordPrintableJSON

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

      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
              Reporter:
              Jonathan Abrahams (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: