commit 152eae195f78367fac7bf8f4cae190cf901b411e Author: Laurynas Biveinis Date: Tue Feb 27 10:29:32 2018 +0200 Fix bug 89822 / PS-3843 (InnoDB retries open on EINTR error only if innodb_use_native_aio is enabled) Make os_file_get_last_error_low return OS_FILE_AIO_INTERRUPTED for any EINTR, regardless of srv_use_native_aio value. diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index 9c2fb6506b4..3bf05896758 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -2785,10 +2785,7 @@ static ulint os_file_get_last_error_low(bool report_all_errors, } break; case EINTR: - if (srv_use_native_aio) { - return (OS_FILE_AIO_INTERRUPTED); - } - break; + return (OS_FILE_AIO_INTERRUPTED); case EACCES: return (OS_FILE_ACCESS_VIOLATION); case ENAMETOOLONG: