mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merged following change from MySQL 5.6 to MariaDB 10.1 XtraDB
including the test case: https://github.com/mysql/mysql-server/commit/520aedfe INNODB: "DATA DIRECTORY" OPTION OF CREATE TABLE FAILS WITH PWRITE() OS ERROR 22 Fix for version mysql-5.6 PROBLEM ======== For version mysql-5.6.27 onwards InnoDB fails to create a table with explicit 'data directory' option when Innodb_flush_method is set to O_DIRECT.While creating link file we get a a pwrite error 22 due to the alignment restrictions imposed by O_DIRECT flag which is being set for the link file created. FIX === Fixed the above issue by making use of file IO functions while creating the link file that wouldn't let the O_DIRECT flag restrictions arise. Reviewed-by: Kevin Lewis <kevin.lewis@oracle.com> Reviewed-by: Shaohua Wang <shaohua.wang@oracle.com> RB: 11387
This commit is contained in:
10
mysql-test/suite/innodb/r/create_isl_with_direct.result
Normal file
10
mysql-test/suite/innodb/r/create_isl_with_direct.result
Normal file
@ -0,0 +1,10 @@
|
||||
SHOW VARIABLES LIKE 'innodb_flush_method';
|
||||
Variable_name Value
|
||||
innodb_flush_method O_DIRECT
|
||||
CREATE TABLE t1 (x INT) ENGINE=INNODB, DATA DIRECTORY='MYSQL_TMP_DIR';
|
||||
# Contents of tmp/test directory containing .ibd file
|
||||
t1.ibd
|
||||
# Contents of the 'test' database directory containing .isl and .frm files
|
||||
t1.frm
|
||||
t1.isl
|
||||
DROP TABLE t1;
|
Reference in New Issue
Block a user