From d8e92a8207d0bafe133c26067e671b1ab6383079 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 4d6f9f1a..362df2bd 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 a238f41e..4faa9de7 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);