mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 15:23:03 +01:00
Fixed bug #8315 : Crash at database restore due to failed system call
This commit is contained in:
parent
df885d5935
commit
01c64fe102
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user