Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b5fc529a4 | ||
|
|
be407c015c | ||
|
|
1eb9145089 |
@@ -14,6 +14,10 @@ HIGH: There is a critical bug that may affect a subset of users. Upgrade!
|
||||
CRITICAL: There is a critical bug affecting MOST USERS. Upgrade ASAP.
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
---[ Redis 2.6.1 ]
|
||||
|
||||
* [BUGFIX] Compilation on Linux < 2.6.17 or glibc < 2.6 fixed (RHLE5 & co).
|
||||
|
||||
---[ Redis 2.6.0 ]
|
||||
|
||||
* [BUGFIX] Allow AUTH when server is in -BUSY state because of a slow script.
|
||||
|
||||
13
src/config.h
13
src/config.h
@@ -55,6 +55,19 @@
|
||||
/* Define rdb_fsync_range to sync_file_range() on Linux, otherwise we use
|
||||
* the plain fsync() call. */
|
||||
#ifdef __linux__
|
||||
#include <linux/version.h>
|
||||
#ifdef __GLIBC__
|
||||
#if (LINUX_VERSION_CODE >= 0x020617 && GLIBC_VERSION_AT_LEAST(2, 6))
|
||||
#define HAVE_SYNC_FILE_RANGE 1
|
||||
#endif
|
||||
#else
|
||||
#if (LINUX_VERSION_CODE >= 0x020617)
|
||||
#define HAVE_SYNC_FILE_RANGE 1
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYNC_FILE_RANGE
|
||||
#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)
|
||||
|
||||
@@ -1010,6 +1010,8 @@ void startLoading(FILE *fp) {
|
||||
/* Refresh the loading progress info */
|
||||
void loadingProgress(off_t pos) {
|
||||
server.loading_loaded_bytes = pos;
|
||||
if (server.stat_peak_memory < zmalloc_used_memory())
|
||||
server.stat_peak_memory = zmalloc_used_memory();
|
||||
}
|
||||
|
||||
/* Loading finished */
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define REDIS_VERSION "2.6.0"
|
||||
#define REDIS_VERSION "2.6.1"
|
||||
|
||||
Reference in New Issue
Block a user