diff options
author | xdavidwu <xdavidwuph@gmail.com> | 2020-09-04 17:40:51 +0800 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-04 13:07:45 +0300 |
commit | 3ee2422624ffb3d7ffefff8db7ef9398816299bc (patch) | |
tree | 298dedcdcd106393f31911cd729530db3f8948bd /wsrep/CMakeLists.txt | |
parent | f0a57acb492c4b034213d37c1fb5943850619f5a (diff) | |
download | mariadb-git-3ee2422624ffb3d7ffefff8db7ef9398816299bc.tar.gz |
InnoDB, XtraDB: handle EOPNOTSUPP from posix_fallocate()
On some libc (like musl[1]), posix_fallocate() is a fallocate() syscall
wrapper, and does not include fallback code like glibc does. In that
case, EOPNOTSUPP is returned if underlying filesystem does not
support fallocate() with mode = 0.
This patch enables falling back to writing zeros when EOPNOTSUPP, fixes
some cases like running on filesystem without proper fallocate support
on Alpine.
[1]: https://git.musl-libc.org/cgit/musl/tree/src/fcntl/posix_fallocate.c?h=v1.2.1
Diffstat (limited to 'wsrep/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions