blob: 7052f6d3f98d921f7d9fd7f3757e5ddf0b1cf98e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff -up redis-2.6.0/src/config.h.el5 redis-2.6.0/src/config.h
--- redis-2.6.0/src/config.h.el5 2012-10-24 17:51:51.000000000 +0200
+++ redis-2.6.0/src/config.h 2012-10-24 17:52:35.000000000 +0200
@@ -52,13 +52,7 @@
#define aof_fsync fsync
#endif
-/* Define rdb_fsync_range to sync_file_range() on Linux, otherwise we use
- * the plain fsync() call. */
-#ifdef __linux__
-#define rdb_fsync_range(fd,off,size) sync_file_range(fd,off,size,SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE)
-#else
#define rdb_fsync_range(fd,off,size) fsync(fd)
-#endif
/* Byte ordering detection */
#include <sys/types.h> /* This will likely define BYTE_ORDER */
|