Threaded IO: make num of I/O threads configurable.

This commit is contained in:
antirez
2019-03-27 18:58:45 +01:00
parent 30091dc29f
commit 9814b2a5f3
4 changed files with 10 additions and 2 deletions

View File

@ -2317,6 +2317,7 @@ void initServerConfig(void) {
server.lazyfree_lazy_server_del = CONFIG_DEFAULT_LAZYFREE_LAZY_SERVER_DEL;
server.always_show_logo = CONFIG_DEFAULT_ALWAYS_SHOW_LOGO;
server.lua_time_limit = LUA_SCRIPT_TIME_LIMIT;
server.io_threads_num = CONFIG_DEFAULT_IO_THREADS_NUM;
unsigned int lruclock = getLRUClock();
atomicSet(server.lruclock,lruclock);