summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2017-01-24 15:21:02 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2017-01-24 15:33:42 +0200
commite5398aca766536bc6151270a6dcd57260dada713 (patch)
tree3be0bfedb436e7d8f0d4da877225bd51cd7726ce
parent106fbadaba03daf51a62c40c1edbe9afb386d149 (diff)
downloadmariadb-git-e5398aca766536bc6151270a6dcd57260dada713.tar.gz
Native AIO should also punch_hole if available.
-rw-r--r--storage/innobase/os/os0file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc
index 846e5567e73..9e41e698cb4 100644
--- a/storage/innobase/os/os0file.cc
+++ b/storage/innobase/os/os0file.cc
@@ -1887,7 +1887,7 @@ LinuxAIOHandler::collect()
&& slot->type.is_write()
&& slot->type.punch_hole()) {
- slot->err = AIOHandler::io_complete(slot);
+ slot->err = slot->type.punch_hole(slot->file, slot->offset, slot->len);
} else {
slot->err = DB_SUCCESS;
}