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

This commit is contained in:
antirez 2011-09-16 15:53:01 +02:00
parent 37183f14e4
commit a60b397b6d

View File

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