mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 09:23:03 +01:00
Disable simultaneous access to read-only database from multiple processes in SS mode
This commit is contained in:
parent
9bc1c60234
commit
e126a21a7c
@ -710,7 +710,7 @@ jrd_file* PIO_open(thread_db* tdbb,
|
||||
}
|
||||
|
||||
const bool shareMode = dbb->dbb_config->getServerMode() != MODE_SUPER;
|
||||
lockDatabaseFile(desc, shareMode || readOnly, false, file_name.c_str(), isc_io_open_err);
|
||||
lockDatabaseFile(desc, shareMode, false, file_name.c_str(), isc_io_open_err);
|
||||
|
||||
// posix_fadvise(desc, 0, 0, POSIX_FADV_RANDOM);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user