diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2016-05-06 13:56:25 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2016-05-06 13:56:25 +0300 |
commit | 5534d8143004022a8431068b1e1f53bd8d7046e9 (patch) | |
tree | b94c157042ac18a312faeb17380176793b962cd4 /libmysql | |
parent | 1512078a7a56779d6fdd307a93187b61494de897 (diff) | |
download | mariadb-git-5534d8143004022a8431068b1e1f53bd8d7046e9.tar.gz |
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
Diffstat (limited to 'libmysql')
0 files changed, 0 insertions, 0 deletions