diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-10-08 00:13:05 +0000 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2017-10-10 06:19:50 +0000 |
commit | b731a5bcf2a0c86b6e31e4a99e3c632bb39a9c53 (patch) | |
tree | 41ce3efe6c4619591be21662b9fcf94c64368b8d /extra | |
parent | 0b5a5258abbeaf8a0c3a18c7e753699787fdf46e (diff) | |
download | mariadb-git-b731a5bcf2a0c86b6e31e4a99e3c632bb39a9c53.tar.gz |
Innodb : Refactor os_file_set_size() to be compatible 10.1
The last parameter to this function is now,"bool is_sparse", like in 10.1
rather than the unused/useless "bool is_readonly", merged from MySQL 5.7
Like in 10.1, this function now supports sparse files, and efficient
platform specific mechanisms for file extension
os_file_set_size() is now consistenly used in all places where
innodb files are extended.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/mariabackup/xtrabackup.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc index f4c0af45cd7..7daead2ceaf 100644 --- a/extra/mariabackup/xtrabackup.cc +++ b/extra/mariabackup/xtrabackup.cc @@ -4022,8 +4022,7 @@ xb_space_create_file( } ret = os_file_set_size(path, *file, - FIL_IBD_FILE_INITIAL_SIZE * UNIV_PAGE_SIZE, - false); + FIL_IBD_FILE_INITIAL_SIZE * UNIV_PAGE_SIZE); if (!ret) { msg("xtrabackup: cannot set size for file %s\n", path); os_file_close(*file); |