mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 07:23:04 +01:00
No sense keeping old value of shared memory pointer when file is already unmapped - thanks to Claudio
This commit is contained in:
parent
a6753b3ed2
commit
c4f37d6f9b
@ -183,6 +183,7 @@ void EventManager::detach_shared_file()
|
|||||||
{
|
{
|
||||||
ISC_mutex_fini(MUTEX);
|
ISC_mutex_fini(MUTEX);
|
||||||
ISC_unmap_file(local_status, &m_shmemData);
|
ISC_unmap_file(local_status, &m_shmemData);
|
||||||
|
m_header = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -284,6 +284,7 @@ void LockManager::detach_shared_file(ISC_STATUS* status)
|
|||||||
{
|
{
|
||||||
ISC_mutex_fini(MUTEX);
|
ISC_mutex_fini(MUTEX);
|
||||||
ISC_unmap_file(status, &m_shmem);
|
ISC_unmap_file(status, &m_shmem);
|
||||||
|
m_header = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user