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