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/config.h | |
parent | 84b281209a653f8afe5b106ab44d8339fd798823 (diff) | |
download | redis-54cae05ea736340b4afe463eb750f5acdfe07590.tar.gz |
rdb: incremental fsync when redis saves rdb
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.h b/src/config.h index c23f1c789..ee3ad508e 100644 --- a/src/config.h +++ b/src/config.h @@ -87,11 +87,11 @@ #endif #endif -/* Define aof_fsync to fdatasync() in Linux and fsync() for all the rest */ +/* Define redis_fsync to fdatasync() in Linux and fsync() for all the rest */ #ifdef __linux__ -#define aof_fsync fdatasync +#define redis_fsync fdatasync #else -#define aof_fsync fsync +#define redis_fsync fsync #endif /* Define rdb_fsync_range to sync_file_range() on Linux, otherwise we use |