diff options
author | monty@narttu.mysql.fi <> | 2003-11-04 09:40:36 +0200 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-11-04 09:40:36 +0200 |
commit | 4e4725377d27ff0101788fd7ed89670614ed8294 (patch) | |
tree | d387df22d5d3ffed50ecd8620f1eb18bc61ead7e /isam | |
parent | 30af2d0f49a203ae4fb97194e899fa5e13a42c1d (diff) | |
parent | e1e82a4e00dd2cee2ff56accdd3fdbd5afeadb6a (diff) | |
download | mariadb-git-4e4725377d27ff0101788fd7ed89670614ed8294.tar.gz |
Merge with 4.0
Diffstat (limited to 'isam')
-rw-r--r-- | isam/extra.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/isam/extra.c b/isam/extra.c index e2f13532ddf..3bf1dd012ed 100644 --- a/isam/extra.c +++ b/isam/extra.c @@ -250,17 +250,15 @@ int nisam_extra(N_INFO *info, enum ha_extra_function function) pthread_mutex_unlock(&THR_LOCK_isam); break; case HA_EXTRA_FLUSH: -#ifdef __WIN__ if (info->s->not_flushed) { info->s->not_flushed=0; - if (_commit(info->s->kfile)) - error=errno; - if (_commit(info->dfile)) - error=errno; + if (my_sync(info->s->kfile, MYF(0))) + error= my_errno; + if (my_sync(info->dfile, MYF(0))) + error= my_errno; } break; -#endif case HA_EXTRA_NORMAL: /* Theese isn't in use */ case HA_EXTRA_QUICK: case HA_EXTRA_KEY_CACHE: |