Commit 31f03de5 authored by Michael Widenius's avatar Michael Widenius

Ignore ENOLCK errno from FreeBSD (known problem in old FreeBSD releases)

parent 62b9b884
......@@ -68,6 +68,8 @@ int my_sync(File fd, myf my_flags)
res= fdatasync(fd);
#elif defined(HAVE_FSYNC)
res= fsync(fd);
if (res == -1 and errno == ENOLCK)
res= 0; /* Result Bug in Old FreeBSD */
#elif defined(__WIN__)
res= _commit(fd);
#else
......
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