mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Corrections per Claudio's request.
This commit is contained in:
parent
b651d3c90b
commit
5cdc00d947
@ -478,6 +478,14 @@ int CLIB_ROUTINE main( int argc, char *argv[])
|
||||
exit(FINI_OK);
|
||||
}
|
||||
|
||||
if (sw_consistency)
|
||||
{
|
||||
#ifdef WIN_NT
|
||||
ISC_mutex_init(MUTEX, shmem_data.sh_mem_name);
|
||||
#endif
|
||||
ISC_mutex_lock(MUTEX);
|
||||
}
|
||||
|
||||
if (LOCK_header->lhb_length > shmem_data.sh_mem_length_mapped)
|
||||
{
|
||||
#if defined HAVE_MMAP || defined WIN_NT
|
||||
@ -504,17 +512,14 @@ int CLIB_ROUTINE main( int argc, char *argv[])
|
||||
exit(FINI_OK);
|
||||
}
|
||||
|
||||
#ifdef WIN_NT
|
||||
ISC_mutex_init(MUTEX, shmem_data.sh_mem_name);
|
||||
#endif
|
||||
|
||||
ISC_mutex_lock(MUTEX);
|
||||
memcpy(buffer, LOCK_header, LOCK_header->lhb_length);
|
||||
ISC_mutex_unlock(MUTEX);
|
||||
|
||||
LOCK_header = (lhb*)(UCHAR*) buffer;
|
||||
|
||||
#ifdef WIN_NT
|
||||
ISC_mutex_fini(MUTEX);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else if (lock_file)
|
||||
|
Loading…
Reference in New Issue
Block a user