From: antirez <antirez@gmail.com>
Date: Fri, 16 Sep 2011 13:53:01 +0000 (+0200)
Subject: use aof_fsync wrapper instead of fsync(2) in bio.c
X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/a60b397b6d2a25072c79fe0a5e29bea89a4d3786?ds=inline

use aof_fsync wrapper instead of fsync(2) in bio.c
---

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().");
         }