X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b56567017dfc44b8e5071423423a48601cc4657e..986630afad7310f4ad548b355be3df076a50032c:/src/redis.c diff --git a/src/redis.c b/src/redis.c index 6b92018d..8662191f 100644 --- a/src/redis.c +++ b/src/redis.c @@ -29,6 +29,7 @@ #include "redis.h" #include "slowlog.h" +#include "bio.h" #ifdef HAVE_BACKTRACE #include @@ -575,6 +576,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) { * in objects at every object access, and accuracy is not needed. * To access a global var is faster than calling time(NULL) */ server.unixtime = time(NULL); + /* We have just 22 bits per object for LRU information. * So we use an (eventually wrapping) LRU clock with 10 seconds resolution. * 2^22 bits with 10 seconds resoluton is more or less 1.5 years. @@ -965,6 +967,7 @@ void initServer() { if (server.cluster_enabled) clusterInit(); scriptingInit(); slowlogInit(); + bioInit(); srand(time(NULL)^getpid()); }