summaryrefslogtreecommitdiff
path: root/mysys/my_sync.c
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@dator8>2011-03-04 12:42:20 +0100
committerMikael Ronstrom <mikael@dator8>2011-03-04 12:42:20 +0100
commitcede2d8d76aa1963b0b16b0065c4fb9f75731e15 (patch)
treeb9bc42a873b7e8fbc9a37755bf525397c73268f2 /mysys/my_sync.c
parent0fc7078e53eb2b34503ddd2408844c2fa06d393f (diff)
downloadmariadb-git-cede2d8d76aa1963b0b16b0065c4fb9f75731e15.tar.gz
Fixed wrong order of call to thd_wait service
Diffstat (limited to 'mysys/my_sync.c')
-rw-r--r--mysys/my_sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_sync.c b/mysys/my_sync.c
index 3ca57055470..076b9b40642 100644
--- a/mysys/my_sync.c
+++ b/mysys/my_sync.c
@@ -56,10 +56,10 @@ int my_sync(File fd, myf my_flags)
DBUG_ENTER("my_sync");
DBUG_PRINT("my",("Fd: %d my_flags: %d", fd, my_flags));
+ if (before_sync_wait)
+ (*before_sync_wait)();
do
{
- if (before_sync_wait)
- (*before_sync_wait)();
#if defined(F_FULLFSYNC)
/*
In Mac OS X >= 10.3 this call is safer than fsync() (it forces the