diff options
author | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2018-03-16 00:44:50 +0800 |
---|---|---|
committer | zhaozhao.zz <zhaozhao.zz@alibaba-inc.com> | 2018-03-16 00:44:50 +0800 |
commit | 54cae05ea736340b4afe463eb750f5acdfe07590 (patch) | |
tree | 1f872323ee3fd079ee5b131ac77b33c261a5fd75 /src/rio.c | |
parent | 84b281209a653f8afe5b106ab44d8339fd798823 (diff) | |
download | redis-54cae05ea736340b4afe463eb750f5acdfe07590.tar.gz |
rdb: incremental fsync when redis saves rdb
Diffstat (limited to 'src/rio.c')
-rw-r--r-- | src/rio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ static size_t rioFileWrite(rio *r, const void *buf, size_t len) { r->io.file.buffered >= r->io.file.autosync) { fflush(r->io.file.fp); - aof_fsync(fileno(r->io.file.fp)); + redis_fsync(fileno(r->io.file.fp)); r->io.file.buffered = 0; } return retval; |