From 918e80a29ca72609cc5a4c1d9818c7e54bb044fe Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 16 Sep 2011 15:53:01 +0200 Subject: [PATCH] use aof_fsync wrapper instead of fsync(2) in bio.c --- src/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bio.c b/src/bio.c index 9199bf23a..a666f558e 100644 --- a/src/bio.c +++ b/src/bio.c @@ -130,7 +130,7 @@ void *bioProcessBackgroundJobs(void *arg) { if (type == REDIS_BIO_CLOSE_FILE) { close((long)job->arg1); } else if (type == REDIS_BIO_AOF_FSYNC) { - fsync((long)job->arg1); + aof_fsync((long)job->arg1); } else { redisPanic("Wrong job type in bioProcessBackgroundJobs()."); }