Commit c307ee34 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Show locksets in lock monitor

When all locks contained in a set are acquired, the lockset's internal
lock is acquired with the same mode. With this patch the internal lock
will show up on the lock monitor, named e.g. “instances/[lockset]”.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarGuido Trotter <>
parent 83f2d5f6
......@@ -855,8 +855,8 @@ class LockSet:
# Lock monitor
self.__monitor = monitor
# Used internally to guarantee coherency.
self.__lock = SharedLock(name)
# Used internally to guarantee coherency
self.__lock = SharedLock(self._GetLockName("[lockset]"), monitor=monitor)
# The lockdict indexes the relationship name -> lock
# The order-of-locking is implied by the alphabetical order of names
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment