commit a846c4735c73221e24b236d2e6efd4e3fec99b11 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 97c2e93a2bd..b48a0a45d35 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -3140,10 +3140,7 @@ os_file_get_last_error_low( } 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: