1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

os0file.h InnoDB should now run with the same binary on Win95 and NT: checks OS version

srv0start.c	InnoDB should now run with the same binary on Win95 and NT: checks OS version


innobase/srv/srv0start.c:
  InnoDB should now run with the same binary on Win95 and NT: checks OS version
innobase/include/os0file.h:
  InnoDB should now run with the same binary on Win95 and NT: checks OS version
This commit is contained in:
unknown
2001-05-20 20:24:02 +03:00
parent 55cbf7f958
commit 23e19c9047
2 changed files with 23 additions and 5 deletions

View File

@ -549,11 +549,19 @@ innobase_start_or_create_for_mysql(void)
srv_n_file_io_threads = 4;
#endif
#ifdef WIN_ASYNC_IO
/* On NT always use aio */
os_aio_use_native_aio = TRUE;
#endif
#ifdef __WIN__
if (os_get_os_version() == OS_WIN95
|| os_get_os_version() == OS_WIN31) {
/* On Win 95, 98, ME, and Win32 subsystem for Windows 3.1 use
simulated aio */
os_aio_use_native_aio = FALSE;
srv_n_file_io_threads = 4;
} else {
/* On NT and Win 2000 always use aio */
os_aio_use_native_aio = TRUE;
}
#endif
if (!os_aio_use_native_aio) {
os_aio_init(4 * SRV_N_PENDING_IOS_PER_THREAD
* srv_n_file_io_threads,