use aof_fsync wrapper instead of fsync(2) in bio.c
This commit is contained in:
parent
fdd6486178
commit
918e80a29c
@ -130,7 +130,7 @@ void *bioProcessBackgroundJobs(void *arg) {
|
|||||||
if (type == REDIS_BIO_CLOSE_FILE) {
|
if (type == REDIS_BIO_CLOSE_FILE) {
|
||||||
close((long)job->arg1);
|
close((long)job->arg1);
|
||||||
} else if (type == REDIS_BIO_AOF_FSYNC) {
|
} else if (type == REDIS_BIO_AOF_FSYNC) {
|
||||||
fsync((long)job->arg1);
|
aof_fsync((long)job->arg1);
|
||||||
} else {
|
} else {
|
||||||
redisPanic("Wrong job type in bioProcessBackgroundJobs().");
|
redisPanic("Wrong job type in bioProcessBackgroundJobs().");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user