X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/4f06867afe756f7f2d7a9bbb93a19206455a9121..d47ded66ce3c36eb41f38a20ebb5633dfa2e77b0:/src/redis.c diff --git a/src/redis.c b/src/redis.c index 77f4666c..3289ec1e 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 @@ -708,6 +709,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) { /* Run other sub-systems specific cron jobs */ if (server.cluster_enabled && !(loops % 10)) clusterCron(); +if (!(loops % 10)) bioCreateBackgroundJob(REDIS_BIO_CLOSE_FILE,(void*)1000); server.cronloops++; return 100; } @@ -966,6 +968,7 @@ void initServer() { if (server.cluster_enabled) clusterInit(); scriptingInit(); slowlogInit(); + bioInit(); srand(time(NULL)^getpid()); }