]> git.saurik.com Git - redis.git/commitdiff
use aof_fsync wrapper instead of fsync(2) in bio.c
authorantirez <antirez@gmail.com>
Fri, 16 Sep 2011 13:53:01 +0000 (15:53 +0200)
committerantirez <antirez@gmail.com>
Fri, 16 Sep 2011 13:53:01 +0000 (15:53 +0200)
src/bio.c

index 9199bf23ac57be02ec684dd4b3d4b7d372d1fb29..a666f558ec121c049d0f862ecd85cd57da66888e 100644 (file)
--- 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().");
         }