From 4ef07b3f9d8753cdcd63957de30772d49adfeb0d Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 7 Jul 2016 15:01:58 +0200 Subject: [PATCH] Move prototype of evictionPoolAlloc() in server.h. --- src/server.c | 2 -- src/server.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server.c b/src/server.c index 4d6f9f1ab..362df2bd0 100644 --- a/src/server.c +++ b/src/server.c @@ -299,8 +299,6 @@ struct redisCommand redisCommandTable[] = { {"latency",latencyCommand,-2,"aslt",0,NULL,0,0,0,0,0} }; -struct evictionPoolEntry *evictionPoolAlloc(void); - /*============================ Utility functions ============================ */ /* Low level logging. To use only for very big messages, otherwise diff --git a/src/server.h b/src/server.h index a238f41e8..4faa9de72 100644 --- a/src/server.h +++ b/src/server.h @@ -1616,6 +1616,9 @@ void disconnectAllBlockedClients(void); /* expire.c -- Handling of expired keys */ void activeExpireCycle(int type); +/* evict.c -- maxmemory handling and LRU eviction. */ +struct evictionPoolEntry *evictionPoolAlloc(void); + /* Git SHA1 */ char *redisGitSHA1(void); char *redisGitDirty(void);