summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Yuan <wangyuan21@baidu.com>2021-05-06 15:52:11 +0800
committerOran Agra <oran@redislabs.com>2021-06-01 17:03:36 +0300
commit9d69d6e8fba82115fac935609fb716e60d72c6fa (patch)
treef2ffb652394097155885ba1664a9c72e69b51069
parent15c078df61985c76944995bfcb94c1c391c1a46d (diff)
downloadredis-9d69d6e8fba82115fac935609fb716e60d72c6fa.tar.gz
Fix wrong COW memory in log (#8917)
Always 0 MB of memory used by copy-on-write, introduced in #8645. (cherry picked from commit 81e2d7272b784273099fecd85b15473277296771)
-rw-r--r--src/childinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/childinfo.c b/src/childinfo.c
index 4f0a42001..5e94a4f2c 100644
--- a/src/childinfo.c
+++ b/src/childinfo.c
@@ -93,7 +93,7 @@ void sendChildInfoGeneric(childInfoType info_type, size_t keys, double progress,
if (cow) {
serverLog((info_type == CHILD_INFO_TYPE_CURRENT_INFO) ? LL_VERBOSE : LL_NOTICE,
"%s: %zu MB of memory used by copy-on-write",
- pname, data.cow / (1024 * 1024));
+ pname, cow / (1024 * 1024));
}
}