summaryrefslogtreecommitdiff
path: root/src/defrag.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-09-27 12:03:09 +0200
committerantirez <antirez@gmail.com>2019-09-27 12:03:09 +0200
commitde1f82aa3302461c21f6cfcb8e8972e865b02174 (patch)
tree10137b03577deb48edd48c6db7b7da7c6c9eebef /src/defrag.c
parent82845f8d045a1fdbac17cf1959ad51906a8840ed (diff)
downloadredis-de1f82aa3302461c21f6cfcb8e8972e865b02174.tar.gz
Function renamed hasForkChild() -> hasActiveChildProcess().
Diffstat (limited to 'src/defrag.c')
-rw-r--r--src/defrag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/defrag.c b/src/defrag.c
index 93c6a4619..50f6b41f2 100644
--- a/src/defrag.c
+++ b/src/defrag.c
@@ -1039,7 +1039,7 @@ void activeDefragCycle(void) {
mstime_t latency;
int quit = 0;
- if (hasForkChild())
+ if (hasActiveChildProcess())
return; /* Defragging memory while there's a fork will just do damage. */
/* Once a second, check if we the fragmentation justfies starting a scan