8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

Fixed bug #8315 : Crash at database restore due to failed system call

This commit is contained in:
Vlad Khorsun 2024-11-12 13:57:02 +02:00
parent df885d5935
commit 01c64fe102

View File

@ -545,7 +545,13 @@ public:
if (!m_mutex.tryEnter(FB_FUNCTION))
return;
fb_assert(m_locked >= 0);
const bool lockedByMe = (m_locked != 0);
m_mutex.leave();
if (!lockedByMe)
return;
}
fb_assert(m_locked > 0);