Skip to content

Commit

Permalink
Fixed bug FirebirdSQL#8315 : Crash at database restore due to failed …
Browse files Browse the repository at this point in the history
…system call
  • Loading branch information
hvlad committed Nov 12, 2024
1 parent df885d5 commit 01c64fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/burp/BurpTasks.h
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,13 @@ class IOBuffer
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);
Expand Down

0 comments on commit 01c64fe

Please sign in to comment.