diff options
author | antirez <antirez@gmail.com> | 2015-03-11 16:59:56 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-03-11 17:00:13 +0100 |
commit | 8e219224b9c9112806ecc868156fdc0b5e0b6d80 (patch) | |
tree | f9e75f8278e375f6ee6380cbaef25d4c53baaae8 /src/redis.c | |
parent | 4a2a0d9e9d0112b1c870914aaeccf58ebc6c6ef2 (diff) | |
download | redis-8e219224b9c9112806ecc868156fdc0b5e0b6d80.tar.gz |
CONFIG refactoring: configEnum abstraction.
Still many things to convert inside config.c in the next commits.
Some const safety in String objects creation and addReply() family
functions.
Diffstat (limited to 'src/redis.c')
-rw-r--r-- | src/redis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c index 86b5a9ebf..7c9ec9028 100644 --- a/src/redis.c +++ b/src/redis.c @@ -2742,7 +2742,7 @@ sds genRedisInfoString(char *section) { char maxmemory_hmem[64]; size_t zmalloc_used = zmalloc_used_memory(); size_t total_system_mem = server.system_memory_size; - char *evict_policy = maxmemoryToString(); + const char *evict_policy = maxmemoryToString(); long long memory_lua = (long long)lua_gc(server.lua,LUA_GCCOUNT,0)*1024; /* Peak memory is updated from time to time by serverCron() so it |