summaryrefslogtreecommitdiff
path: root/src/rio.c
diff options
context:
space:
mode:
authorzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2018-03-16 00:44:50 +0800
committerzhaozhao.zz <zhaozhao.zz@alibaba-inc.com>2018-03-16 00:44:50 +0800
commit54cae05ea736340b4afe463eb750f5acdfe07590 (patch)
tree1f872323ee3fd079ee5b131ac77b33c261a5fd75 /src/rio.c
parent84b281209a653f8afe5b106ab44d8339fd798823 (diff)
downloadredis-54cae05ea736340b4afe463eb750f5acdfe07590.tar.gz
rdb: incremental fsync when redis saves rdb
Diffstat (limited to 'src/rio.c')
-rw-r--r--src/rio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rio.c b/src/rio.c
index 23b907060..c9c76b8f2 100644
--- a/src/rio.c
+++ b/src/rio.c
@@ -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;