mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 12:03:02 +01:00
Moved assertion out of loop else it could wrongly fire at second execution
This commit is contained in:
parent
458c56a9ab
commit
1268f882e6
@ -1128,12 +1128,15 @@ void LockManager::acquire_shmem(SRQ_PTR owner_offset)
|
|||||||
|
|
||||||
// Check for shared memory state consistency
|
// Check for shared memory state consistency
|
||||||
|
|
||||||
while (SRQ_EMPTY(m_header->lhb_processes))
|
if (SRQ_EMPTY(m_header->lhb_processes))
|
||||||
{
|
{
|
||||||
fb_assert(owner_offset == CREATE_OWNER);
|
fb_assert(owner_offset == CREATE_OWNER);
|
||||||
owner_offset = DUMMY_OWNER;
|
owner_offset = DUMMY_OWNER;
|
||||||
|
}
|
||||||
|
|
||||||
if (! m_sharedFileCreated)
|
while (SRQ_EMPTY(m_header->lhb_processes))
|
||||||
|
{
|
||||||
|
if (!m_sharedFileCreated)
|
||||||
{
|
{
|
||||||
ISC_STATUS_ARRAY local_status;
|
ISC_STATUS_ARRAY local_status;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user