Function renamed hasForkChild() -> hasActiveChildProcess().

This commit is contained in:
antirez
2019-09-27 12:03:09 +02:00
parent 82845f8d04
commit de1f82aa33
8 changed files with 21 additions and 21 deletions

View File

@ -60,7 +60,7 @@ robj *lookupKey(redisDb *db, robj *key, int flags) {
/* Update the access time for the ageing algorithm.
* Don't do it if we have a saving child, as this will trigger
* a copy on write madness. */
if (!hasForkChild() && !(flags & LOOKUP_NOTOUCH)){
if (!hasActiveChildProcess() && !(flags & LOOKUP_NOTOUCH)){
if (server.maxmemory_policy & MAXMEMORY_FLAG_LFU) {
updateLFU(val);
} else {