diff options
author | antirez <antirez@gmail.com> | 2016-09-19 10:28:05 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-09-19 10:28:42 +0200 |
commit | 945a2f948eb518090325b0ceab92588a905e0f92 (patch) | |
tree | 5fc8ce99488869cbeda0d3216a85ffb0b735697d /src/rdb.c | |
parent | b13759e90ae8a9bab7662a1806d61d40eb3d12cf (diff) | |
download | redis-945a2f948eb518090325b0ceab92588a905e0f92.tar.gz |
zmalloc: zmalloc_get_smap_bytes_by_field() modified to work for any PID.
The goal is to get copy-on-write amount of the child from the parent.
Diffstat (limited to 'src/rdb.c')
-rw-r--r-- | src/rdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1024,7 +1024,7 @@ int rdbSaveBackground(char *filename) { redisSetProcTitle("redis-rdb-bgsave"); retval = rdbSave(filename); if (retval == C_OK) { - size_t private_dirty = zmalloc_get_private_dirty(); + size_t private_dirty = zmalloc_get_private_dirty(-1); if (private_dirty) { serverLog(LL_NOTICE, @@ -1761,7 +1761,7 @@ int rdbSaveToSlavesSockets(void) { retval = C_ERR; if (retval == C_OK) { - size_t private_dirty = zmalloc_get_private_dirty(); + size_t private_dirty = zmalloc_get_private_dirty(-1); if (private_dirty) { serverLog(LL_NOTICE, |