Merge lp:~vlad-lesin/percona-server/5.1-bug801989 into lp:percona-server/5.1
Proposed by
Vlad Lesin
Status: | Work in progress | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~vlad-lesin/percona-server/5.1-bug801989 | ||||
Merge into: | lp:percona-server/5.1 | ||||
Diff against target: |
64 lines (+13/-5) 2 files modified
Percona-Server/storage/innodb_plugin/include/os0file.h (+3/-2) Percona-Server/storage/innodb_plugin/os/os0file.c (+10/-3) |
||||
To merge this branch: | bzr merge lp:~vlad-lesin/percona-server/5.1-bug801989 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Needs Fixing | ||
Review via email: mp+124113@code.launchpad.net |
Description of the change
Bug #801989 fix.
To post a comment you must log in.
Unmerged revisions
- 482. By Vlad Lesin
-
The bug #801989 fix.
The main idea of this fix is to return "true" on success and "false" otherwise
from os_file_set_nocache( ). That allows to process O_DIRECT flag setting failures. If setting O_DIRECT failes on log files the srv_unix_
file_flush_ method is set
to SRV_UNIX_O_DIRECT value to do fsync() on log files. If O_DIRECT fails on
other files the error is ignored to do buffered I/O on filesystems that do not
support direct I/O(for example tmpfs).
Vlad,
The patch looks good. But as we discussed it should be recommitted to a GCA 5.1 branch.
Since you have to recommit it anyway, please add braces around the statement in the if() block, as done in everywhere in InnoDB.