Commit 01ac844b authored by antirez's avatar antirez
Browse files

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

parent 79b9ec53
......@@ -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().");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment