mirror of
https://github.com/fluencelabs/redis
synced 2025-06-24 06:21:32 +00:00
rdb: incremental fsync when redis saves rdb
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user