mirror of
https://github.com/fluencelabs/redis
synced 2025-05-29 10:11:19 +00:00
Update memory peak stats while loading RDB / AOF.
This commit is contained in:
parent
f7b42b1749
commit
24ee20e5ca
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user