Thank you for the bug report and the patch provided.
Looking at which, what about the case where HAVE_POSIX_FALLOCATE is defined but server is running with srv_use_posix_fallocate == FALSE? Then we'd perform actual writes to extend the tablespace but with the patch applied end up calling fil_node_complete_io() with OS_FILE_READ instead of OS_FILE_WRITE? It looks to me that "if (srv_use_posix_fallocate)" guard is required there too?
Jan -
Thank you for the bug report and the patch provided.
Looking at which, what about the case where HAVE_POSIX_ FALLOCATE is defined but server is running with srv_use_ posix_fallocate == FALSE? Then we'd perform actual writes to extend the tablespace but with the patch applied end up calling fil_node_ complete_ io() with OS_FILE_READ instead of OS_FILE_WRITE? It looks to me that "if (srv_use_ posix_fallocate )" guard is required there too?