mariadb/storage
Jan Lindström 5534d81430 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
2016-05-06 13:56:25 +03:00
..
archive Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
blackhole MDEV-5120 Test suite test maria-no-logging fails 2014-09-30 20:31:14 +03:00
cassandra Merge branch '10.0' into 10.1 2015-12-21 21:24:22 +01:00
connect MDEV-9949 Connect Engine: long SRCDEF leads to broken table 2016-05-05 01:05:05 +02:00
csv Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
example 5.5.40+ merge 2014-10-09 10:30:11 +02:00
federated Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
federatedx Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
heap Sage cleanup in heap storage engine 2015-11-10 13:46:56 +02:00
innobase Merge branch 'bb-10.1-merge' into 10.1 2016-05-05 08:47:17 +02:00
maria Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
mroonga Merge branch '10.0' into 10.1 2016-03-21 13:02:53 +01:00
myisam Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
myisammrg Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
oqgraph Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
perfschema Merge branch '10.0' into 10.1 2016-02-23 21:35:05 +01:00
sequence test for group by pushdown with a view 2016-05-05 01:05:05 +02:00
sphinx Merge branch '10.0' into 10.1 2016-02-23 21:35:05 +01:00
spider Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
test_sql_discovery MDEV-3929 Add system variable explicit_defaults_for_timestamp for compatibility with MySQL 2015-09-22 14:01:54 +04:00
tokudb Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
xtradb Merged following change from MySQL 5.6 to MariaDB 10.1 XtraDB 2016-05-06 13:56:25 +03:00