8
0
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:
AlexPeshkoff 2020-01-13 17:10:26 +03:00
parent 9bc1c60234
commit e126a21a7c

View File

@ -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);