From a60b397b6d2a25072c79fe0a5e29bea89a4d3786 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 9199bf23..a666f558 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()."); }