Dany40 wrote 18.12.2025 12:41:
> In my case, lots of databases are in use at the same time. I think it is very
> usefull to know in the context of what database that fatal error is.
In this case apply this simple patch:
-------------------- 8<-------------------
diff --git a/src/lock/lock.cpp b/src/lock/lock.cpp
index 59fab14dd6..2af341a32f 100644
--- a/src/lock/lock.cpp
+++ b/src/lock/lock.cpp
@@ -1068,7 +1068,7 @@ void LockManager::acquire_shmem(SRQ_PTR owner_offset)
{
fb_assert(!m_process);
if (m_process)
- bug(NULL, "Process disappeared in LockManager::acquire_shmem");
+ bug(NULL, "Process disappeared in LockManager::acquire_shmem (database id
%s)", m_dbId.c_str());
// Shared memory must be empty at this point
fb_assert(SRQ_EMPTY(m_sharedMemory->getHeader()->lhb_processes));
-------------------- >8 ------------------
It won't show you database name but its UUID (which is also used for lock
file name, which can be used for fb_lock_print command), but finding db by id
shouldn't be hard even if there are 300 of them.
--
WBR, SD.