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.
This commit is contained in:
antirez 2014-01-14 11:27:28 +01:00
parent d5763dceaf
commit 5189485625

View File

@ -81,7 +81,7 @@
#define REDIS_SHARED_BULKHDR_LEN 32 #define REDIS_SHARED_BULKHDR_LEN 32
#define REDIS_MAX_LOGMSG_LEN 1024 /* Default maximum length of syslog messages */ #define REDIS_MAX_LOGMSG_LEN 1024 /* Default maximum length of syslog messages */
#define REDIS_AOF_REWRITE_PERC 100 #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_AOF_REWRITE_ITEMS_PER_CMD 64
#define REDIS_SLOWLOG_LOG_SLOWER_THAN 10000 #define REDIS_SLOWLOG_LOG_SLOWER_THAN 10000
#define REDIS_SLOWLOG_MAX_LEN 128 #define REDIS_SLOWLOG_MAX_LEN 128