mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
a98009ab02
Remove srv_win_file_flush_method - Rename srv_unix_file_flush_method to srv_file_flush_method, and rename constants to remove UNIX from them, i.e SRV_UNIX_FSYNC=>SRV_FSYNC - Add SRV_ALL_O_DIRECT_FSYNC corresponding to current Windows default (no buffering for either log or data, flush on both log and data) - change os_file_open on Windows to behave identically to Unix wrt O_DIRECT and O_DSYNC settings. map O_DIRECT to FILE_FLAG_NO_BUFFERING and O_DSYNC to FILE_FLAG_WRITE_THROUGH - remove various #ifdef _WIN32
27 lines
No EOL
816 B
Text
27 lines
No EOL
816 B
Text
--source include/not_embedded.inc
|
|
--source include/have_innodb.inc
|
|
|
|
--disable_query_log
|
|
CALL mtr.add_suppression(".*Failed to set O_DIRECT on file.*");
|
|
|
|
# The below mtr suppression to avoid failure in solaris platform.
|
|
CALL mtr.add_suppression("\\[ERROR\\] InnoDB: Failed to set DIRECTIO_ON on file.*");
|
|
--enable_query_log
|
|
|
|
SHOW VARIABLES LIKE 'innodb_flush_method';
|
|
|
|
let MYSQLD_DATADIR=`SELECT @@datadir`;
|
|
|
|
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
|
|
|
|
# Create a table with explicit data directory option.
|
|
EVAL CREATE TABLE t1 (x INT) ENGINE=INNODB, DATA DIRECTORY='$MYSQL_TMP_DIR';
|
|
|
|
--echo # Contents of tmp/test directory containing .ibd file
|
|
--list_files $MYSQL_TMP_DIR/test
|
|
|
|
--echo # Contents of the 'test' database directory containing .isl and .frm files
|
|
--list_files $MYSQLD_DATADIR/test
|
|
|
|
DROP TABLE t1;
|
|
|