From 5189485625d9b3e6b3d38a465e9b4555a50e073e Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 14 Jan 2014 11:27:28 +0100 Subject: [PATCH] Set REDIS_AOF_REWRITE_MIN_SIZE to 64mb. 64mb is the default value in redis.conf. For some reason instead the hard-coded default was 1mb that is too small. --- src/redis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis.h b/src/redis.h index 3e928180e..ace974ee1 100644 --- a/src/redis.h +++ b/src/redis.h @@ -81,7 +81,7 @@ #define REDIS_SHARED_BULKHDR_LEN 32 #define REDIS_MAX_LOGMSG_LEN 1024 /* Default maximum length of syslog messages */ #define REDIS_AOF_REWRITE_PERC 100 -#define REDIS_AOF_REWRITE_MIN_SIZE (1024*1024) +#define REDIS_AOF_REWRITE_MIN_SIZE (64*1024*1024) #define REDIS_AOF_REWRITE_ITEMS_PER_CMD 64 #define REDIS_SLOWLOG_LOG_SLOWER_THAN 10000 #define REDIS_SLOWLOG_MAX_LEN 128