rdb: incremental fsync when redis saves rdb

This commit is contained in:
zhaozhao.zz
2018-03-16 00:44:50 +08:00
parent 84b281209a
commit 54cae05ea7
8 changed files with 32 additions and 13 deletions

View File

@ -187,7 +187,7 @@ void *bioProcessBackgroundJobs(void *arg) {
if (type == BIO_CLOSE_FILE) {
close((long)job->arg1);
} else if (type == BIO_AOF_FSYNC) {
aof_fsync((long)job->arg1);
redis_fsync((long)job->arg1);
} else if (type == BIO_LAZY_FREE) {
/* What we free changes depending on what arguments are set:
* arg1 -> free the object at pointer.