Commit 864118da authored by Michael Widenius's avatar Michael Widenius

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

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