mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 09:20:39 +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))
|
if (!m_mutex.tryEnter(FB_FUNCTION))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
fb_assert(m_locked >= 0);
|
||||||
|
const bool lockedByMe = (m_locked != 0);
|
||||||
|
|
||||||
m_mutex.leave();
|
m_mutex.leave();
|
||||||
|
|
||||||
|
if (!lockedByMe)
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fb_assert(m_locked > 0);
|
fb_assert(m_locked > 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user