• M
    Force INFO used_memory_peak to match peak memory · 7c092b67
    Matt Stancliff 提交于
    used_memory_peak only updates in serverCron every server.hz,
    but Redis can use more memory and a user can request memory
    INFO before used_memory_peak gets updated in the next
    cron run.
    
    This patch updates used_memory_peak to the current
    memory usage if the current memory usage is higher
    than the recorded used_memory_peak value.
    
    (And it only calls zmalloc_used_memory() once instead of
    twice as it was doing before.)
    7c092b67
redis.c 122.8 KB