Commit baad0f34 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-11520 post-fix: Retry posix_fallocate() on EINTR in fil_ibd_create()

Earlier versions of MariaDB only use posix_fallocate() when extending
data files, not when initially creating the files,
parent 07cb4646
......@@ -3863,7 +3863,10 @@ fil_ibd_create(
FusionIO HW/Firmware but should also be the prefered way to extend
a file.
*/
int ret = posix_fallocate(file, 0, size * UNIV_PAGE_SIZE);
int ret;
do {
ret = posix_fallocate(file, 0, size * UNIV_PAGE_SIZE);
} while (ret != 0 && ret != EINTR);
if (ret == 0) {
success = true;
......
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