summaryrefslogtreecommitdiff
path: root/src/childinfo.c
diff options
context:
space:
mode:
authorWang Yuan <wangyuan21@baidu.com>2021-05-06 15:52:11 +0800
committerGitHub <noreply@github.com>2021-05-06 10:52:11 +0300
commit81e2d7272b784273099fecd85b15473277296771 (patch)
treea4917119ca24a58dfa249d65c756f42072aa65a0 /src/childinfo.c
parentbcc519fa7cef85adf182af0cfa4aa67a71ad90b9 (diff)
downloadredis-81e2d7272b784273099fecd85b15473277296771.tar.gz
Fix wrong COW memory in log (#8917)
Always 0 MB of memory used by copy-on-write, introduced in #8645.
Diffstat (limited to 'src/childinfo.c')
-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));
}
}