diff options
author | Michael Widenius <monty@mysql.com> | 2010-08-09 20:54:58 +0300 |
---|---|---|
committer | Michael Widenius <monty@mysql.com> | 2010-08-09 20:54:58 +0300 |
commit | 864118da1b6dcffc1d5b9d91ed5527fcb8aef973 (patch) | |
tree | e620872eb4c76feaa5c71e75c4221fbd7586207d /mysys/my_sync.c | |
parent | 12648015b322e885923f87d919c07529423a0eca (diff) | |
download | mariadb-git-864118da1b6dcffc1d5b9d91ed5527fcb8aef973.tar.gz |
Ignore ENOLCK errno from FreeBSD (known problem in old FreeBSD releases)
Diffstat (limited to 'mysys/my_sync.c')
-rw-r--r-- | mysys/my_sync.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/my_sync.c b/mysys/my_sync.c index 9f6c55f4fb6..cb0f5794b2e 100644 --- a/mysys/my_sync.c +++ b/mysys/my_sync.c @@ -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 |