Commit 71f4a24d authored by Elena Stepanova's avatar Elena Stepanova

MDEV-5452 10.0 does not build on openSUSE 13.1

Also known as MySQL#70047 and BUG#17316314 (srv_buf_size not declared).
The workaround is taken from MySQL 5.6 tree: 

  BUG#17316314 - SRV_BUF_SIZE NOT DECLARED
  Temporary fix. Disabling FALLOC_FL_PUNCH_HOLE for now
parent 752c6edd
......@@ -2192,7 +2192,7 @@ all_done:
posix_fadvise(index->online_log->fd,
ofs, srv_sort_buf_size, POSIX_FADV_DONTNEED);
#endif /* POSIX_FADV_DONTNEED */
#ifdef FALLOC_FL_PUNCH_HOLE
#if 0 //def FALLOC_FL_PUNCH_HOLE
/* Try to deallocate the space for the file on disk.
This should work on ext4 on Linux 2.6.39 and later,
and be ignored when the operation is unsupported. */
......@@ -2979,7 +2979,7 @@ all_done:
posix_fadvise(index->online_log->fd,
ofs, srv_sort_buf_size, POSIX_FADV_DONTNEED);
#endif /* POSIX_FADV_DONTNEED */
#ifdef FALLOC_FL_PUNCH_HOLE
#if 0 //def FALLOC_FL_PUNCH_HOLE
/* Try to deallocate the space for the file on disk.
This should work on ext4 on Linux 2.6.39 and later,
and be ignored when the operation is unsupported. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment