mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Add additional srv_use_fallocate guard for completing the IO with
read.
This commit is contained in:
parent
57a70a635a
commit
a5e236db54
1 changed files with 5 additions and 1 deletions
|
|
@ -5034,7 +5034,11 @@ complete_io:
|
|||
dispatched read operation is enough here. Without this
|
||||
there will be assertion at shutdown indicating that
|
||||
all IO is not completed. */
|
||||
fil_node_complete_io(node, fil_system, OS_FILE_READ);
|
||||
if (srv_use_posix_fallocate) {
|
||||
fil_node_complete_io(node, fil_system, OS_FILE_READ);
|
||||
} else {
|
||||
fil_node_complete_io(node, fil_system, OS_FILE_WRITE);
|
||||
}
|
||||
#else
|
||||
fil_node_complete_io(node, fil_system, OS_FILE_WRITE);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue