mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
add background jobs initialization to Redis main init function
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user