diff options
author | antirez <antirez@gmail.com> | 2012-10-24 12:21:34 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-10-24 12:21:34 +0200 |
commit | 1eb91450898066bca8d90726869ab76861594cf6 (patch) | |
tree | 27772decc99d72a855e3ebbf10abcfbf71b50d59 | |
parent | 5eec376c2f56dbf617cc8bc19476fd5431cd664d (diff) | |
download | redis-1eb91450898066bca8d90726869ab76861594cf6.tar.gz |
Update memory peak stats while loading RDB / AOF.
-rw-r--r-- | src/rdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |