From: antirez Date: Wed, 24 Oct 2012 10:21:34 +0000 (+0200) Subject: Update memory peak stats while loading RDB / AOF. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/1eb91450898066bca8d90726869ab76861594cf6?ds=sidebyside Update memory peak stats while loading RDB / AOF. --- diff --git a/src/rdb.c b/src/rdb.c index fd9fcacf..b7ce8858 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -1010,6 +1010,8 @@ void startLoading(FILE *fp) { /* Refresh the loading progress info */ void loadingProgress(off_t pos) { server.loading_loaded_bytes = pos; + if (server.stat_peak_memory < zmalloc_used_memory()) + server.stat_peak_memory = zmalloc_used_memory(); } /* Loading finished */