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

@ -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