summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-07-07 15:01:58 +0200
committerantirez <antirez@gmail.com>2016-07-12 12:22:35 +0200
commitd8e92a8207d0bafe133c26067e671b1ab6383079 (patch)
treefb2c6ceb51093c2a45d01833d45f4a41a7bee114
parent3b9495d20d7deaddb235e1f82bf4ec922a75a030 (diff)
downloadredis-d8e92a8207d0bafe133c26067e671b1ab6383079.tar.gz
Move prototype of evictionPoolAlloc() in server.h.
-rw-r--r--src/server.c2
-rw-r--r--src/server.h3
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);