mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
RDMF: Redis -> Server in adjustOpenFilesLimit().
This commit is contained in:
parent
813ff7fdde
commit
54c71f2d96
@ -1621,7 +1621,7 @@ void adjustOpenFilesLimit(void) {
|
|||||||
server.maxclients = bestlimit-CONFIG_MIN_RESERVED_FDS;
|
server.maxclients = bestlimit-CONFIG_MIN_RESERVED_FDS;
|
||||||
if (server.maxclients < 1) {
|
if (server.maxclients < 1) {
|
||||||
serverLog(LL_WARNING,"Your current 'ulimit -n' "
|
serverLog(LL_WARNING,"Your current 'ulimit -n' "
|
||||||
"of %llu is not enough for Redis to start. "
|
"of %llu is not enough for the server to start. "
|
||||||
"Please increase your open file limit to at least "
|
"Please increase your open file limit to at least "
|
||||||
"%llu. Exiting.",
|
"%llu. Exiting.",
|
||||||
(unsigned long long) oldlimit,
|
(unsigned long long) oldlimit,
|
||||||
@ -1632,7 +1632,7 @@ void adjustOpenFilesLimit(void) {
|
|||||||
"requiring at least %llu max file descriptors.",
|
"requiring at least %llu max file descriptors.",
|
||||||
old_maxclients,
|
old_maxclients,
|
||||||
(unsigned long long) maxfiles);
|
(unsigned long long) maxfiles);
|
||||||
serverLog(LL_WARNING,"Redis can't set maximum open files "
|
serverLog(LL_WARNING,"Server can't set maximum open files "
|
||||||
"to %llu because of OS error: %s.",
|
"to %llu because of OS error: %s.",
|
||||||
(unsigned long long) maxfiles, strerror(setrlimit_error));
|
(unsigned long long) maxfiles, strerror(setrlimit_error));
|
||||||
serverLog(LL_WARNING,"Current maximum open files is %llu. "
|
serverLog(LL_WARNING,"Current maximum open files is %llu. "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user