add background jobs initialization to Redis main init function

This commit is contained in:
antirez 2011-09-13 16:10:26 +02:00
parent f81a5f54d8
commit 8f61a72fa8

View File

@ -29,6 +29,7 @@
#include "redis.h"
#include "slowlog.h"
#include "bio.h"
#ifdef HAVE_BACKTRACE
#include <execinfo.h>
@ -966,6 +967,7 @@ void initServer() {
if (server.cluster_enabled) clusterInit();
scriptingInit();
slowlogInit();
bioInit();
srand(time(NULL)^getpid());
}