X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3e6a4463e02dc4a39cf4f73704dbcabacd7db8ff..212bb9ca2e62019b3fc53ca080ab1d9884f81bec:/src/redis.c diff --git a/src/redis.c b/src/redis.c index 9966f945..46ae3ffa 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1067,7 +1067,6 @@ void initServerConfig() { server.lua_time_limit = REDIS_LUA_TIME_LIMIT; server.lua_client = NULL; server.lua_timedout = 0; - server.lua_protect_globals = 1; updateLRUClock(); resetServerSaveParams(); @@ -1136,7 +1135,6 @@ void adjustOpenFilesLimit(void) { rlim_t maxfiles = server.maxclients+32; struct rlimit limit; - if (maxfiles < 1024) maxfiles = 1024; if (getrlimit(RLIMIT_NOFILE,&limit) == -1) { redisLog(REDIS_WARNING,"Unable to obtain the current NOFILE limit (%s), assuming 1024 and setting the max clients configuration accordingly.", strerror(errno));