mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 09:23:03 +01:00
Additional assertions related to the recent patch for bug CORE-6224
This commit is contained in:
parent
fd9dacaa3e
commit
a9b049e04b
@ -1153,6 +1153,11 @@ public:
|
||||
// release reference that was created in constructor
|
||||
bool releasePort()
|
||||
{
|
||||
Firebird::RefMutexEnsureUnlock portGuard(*port_sync, FB_FUNCTION);
|
||||
const bool locked = portGuard.tryEnter();
|
||||
fb_assert(locked);
|
||||
|
||||
fb_assert(!(port_flags & PORT_released));
|
||||
if (port_flags & PORT_released)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user