mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Merge with 3.23.53
Docs/manual.texi: Auto merged innobase/include/srv0srv.h: Auto merged innobase/os/os0file.c: Auto merged innobase/row/row0mysql.c: Auto merged innobase/srv/srv0srv.c: Auto merged sql/sql_table.cc: Auto merged sql/filesort.cc: merge
This commit is contained in:
commit
ddcc49ec62
5 changed files with 37 additions and 11 deletions
|
|
@ -15,8 +15,6 @@ Created 10/21/1995 Heikki Tuuri
|
|||
|
||||
#undef HAVE_FDATASYNC
|
||||
|
||||
#undef UNIV_NON_BUFFERED_IO
|
||||
|
||||
#ifdef POSIX_ASYNC_IO
|
||||
/* We assume in this case that the OS has standard Posix aio (at least SunOS
|
||||
2.6, HP-UX 11i and AIX 4.3 have) */
|
||||
|
|
@ -500,14 +498,25 @@ try_again:
|
|||
}
|
||||
#endif
|
||||
#ifdef UNIV_NON_BUFFERED_IO
|
||||
attributes = attributes | FILE_FLAG_NO_BUFFERING;
|
||||
if (type == OS_LOG_FILE && srv_flush_log_at_trx_commit == 2) {
|
||||
/* Do not use unbuffered i/o to log files because
|
||||
value 2 denotes that we do not flush the log at every
|
||||
commit, but only once per second */
|
||||
} else {
|
||||
attributes = attributes | FILE_FLAG_NO_BUFFERING;
|
||||
}
|
||||
#endif
|
||||
} else if (purpose == OS_FILE_NORMAL) {
|
||||
attributes = 0
|
||||
attributes = 0;
|
||||
#ifdef UNIV_NON_BUFFERED_IO
|
||||
| FILE_FLAG_NO_BUFFERING
|
||||
if (type == OS_LOG_FILE && srv_flush_log_at_trx_commit == 2) {
|
||||
/* Do not use unbuffered i/o to log files because
|
||||
value 2 denotes that we do not flush the log at every
|
||||
commit, but only once per second */
|
||||
} else {
|
||||
attributes = attributes | FILE_FLAG_NO_BUFFERING;
|
||||
}
|
||||
#endif
|
||||
;
|
||||
} else {
|
||||
attributes = 0;
|
||||
ut_error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue