From 4422cf04b2d42cafadb4448bbaa31b2ab6ac136d Mon Sep 17 00:00:00 2001 From: Alexander Presnyakov Date: Thu, 18 Sep 2025 13:03:59 +0000 Subject: [PATCH] Just a debug logging telling that no locks remain --- cmapi/cmapi_server/process_dispatchers/locks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmapi/cmapi_server/process_dispatchers/locks.py b/cmapi/cmapi_server/process_dispatchers/locks.py index d017a39d6..b760992e3 100644 --- a/cmapi/cmapi_server/process_dispatchers/locks.py +++ b/cmapi/cmapi_server/process_dispatchers/locks.py @@ -109,6 +109,8 @@ def release_shmem_locks(logger: logging.Logger, max_iterations: int = 5) -> bool active_total = sum(s.readers + s.writers for s in states) waiting_total = sum(s.readers_waiting + s.writers_waiting for s in states) if active_total == 0 and waiting_total == 0: + attempts_descr = "" if not attempt else f" after {attempt} attempts" + logger.info('No active or waiting shmem locks remain%s', attempts_descr) return True logger.debug(