X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/a1090c1193c6b3162d166c8c85aca86a39fb6c3e..727d6dd52a3e778403d2ef66a516498ff25f3c02:/src/redis.c diff --git a/src/redis.c b/src/redis.c index 86cf0d95..46ae3ffa 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1135,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));