diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-10-06 15:40:26 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-10-06 15:40:26 +0300 |
commit | 21adad000a00a62357c0da63ff9ae98850475618 (patch) | |
tree | c74d82d6651224768ebfa4cb10eca74d6848f114 /config.h.cmake | |
parent | 90f2c822469a4f88f882ba8974e790f0fb0b2702 (diff) | |
download | mariadb-git-21adad000a00a62357c0da63ff9ae98850475618.tar.gz |
MDEV-8901: InnoDB: Punch hole is incorrecty done also to log files causing assertion and database corruption
Analysis: Problem is that punch hole does not know the actual page size
of the page and does the page belong to an data file or to a log file.
Fix: Pass down the file type and page size to os layer to be used
when trim is called. Also fix unsafe null pointer access to
actual write_size.
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake index 066ddacfbf3..ae0306513c6 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -219,6 +219,7 @@ #cmakedefine HAVE_POSIX_FALLOCATE 1 #cmakedefine HAVE_LINUX_FALLOC_H 1 #cmakedefine HAVE_FALLOCATE 1 +#cmakedefine HAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE 1 #cmakedefine HAVE_PREAD 1 #cmakedefine HAVE_PAUSE_INSTRUCTION 1 #cmakedefine HAVE_FAKE_PAUSE_INSTRUCTION 1 |