~vlad-lesin/percona-server/5.1-bug801989

Viewing all changes in revision 482.

  • Committer: Vlad Lesin
  • Date: 2012-09-13 07:22:01 UTC
  • Revision ID: vladislav.lesin@percona.com-20120913072201-m0cbo40dxle6c3tr
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).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: