antirez/redis — pull request #1572 by mattsta (2014-02-28 22:57:11+00:00)
Title: Force INFO used_memory_peak to match peak memory

This is a fix for antirez/redis#1570

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.)