Addressing PR comments

Former-commit-id: 63e5d00bdfdb054353c7f3fb7a5890d98e7a7f92
This commit is contained in:
Kajaruban Surendran 2020-12-01 21:49:05 +00:00 committed by John Sully
parent 877f94734c
commit b09730b4e2

View File

@ -2273,8 +2273,8 @@ static int updateMaxclients(long long val, long long prev, const char **err) {
} }
return 0; return 0;
} }
/* Change the SetSize for the current thread first. /* Change the SetSize for the current thread first. If any error, return the error message to the client,
* If any error, return the error message to the client, otherwise, continue to do the same for other threads */ * otherwise, continue to do the same for other threads */
if ((unsigned int) aeGetSetSize(aeGetCurrentEventLoop()) < if ((unsigned int) aeGetSetSize(aeGetCurrentEventLoop()) <
g_pserver->maxclients + CONFIG_FDSET_INCR) g_pserver->maxclients + CONFIG_FDSET_INCR)
{ {