diff options
author | Oran Agra <oran@redislabs.com> | 2020-09-20 13:43:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 13:43:28 +0300 |
commit | 2458e5481434bb9c7b99813a449f6cbdf521c028 (patch) | |
tree | 909015ca6984b4940336ac3efc3b4335d3f45109 /src/childinfo.c | |
parent | dfe9714c867ba69f9ace30c9a9270ae95a111556 (diff) | |
download | redis-2458e5481434bb9c7b99813a449f6cbdf521c028.tar.gz |
RM_GetContextFlags provides indication that we're in a fork child (#7783)
Diffstat (limited to 'src/childinfo.c')
-rw-r--r-- | src/childinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/childinfo.c b/src/childinfo.c index fa0600552..f95ae9647 100644 --- a/src/childinfo.c +++ b/src/childinfo.c @@ -76,11 +76,11 @@ void receiveChildInfo(void) { if (read(server.child_info_pipe[0],&server.child_info_data,wlen) == wlen && server.child_info_data.magic == CHILD_INFO_MAGIC) { - if (server.child_info_data.process_type == CHILD_INFO_TYPE_RDB) { + if (server.child_info_data.process_type == CHILD_TYPE_RDB) { server.stat_rdb_cow_bytes = server.child_info_data.cow_size; - } else if (server.child_info_data.process_type == CHILD_INFO_TYPE_AOF) { + } else if (server.child_info_data.process_type == CHILD_TYPE_AOF) { server.stat_aof_cow_bytes = server.child_info_data.cow_size; - } else if (server.child_info_data.process_type == CHILD_INFO_TYPE_MODULE) { + } else if (server.child_info_data.process_type == CHILD_TYPE_MODULE) { server.stat_module_cow_bytes = server.child_info_data.cow_size; } } |