Additional asserts ensuring the client is creating on the correct thread

Former-commit-id: 937702ea1dd0a4331dd7c66ee9f5c2c3f2354d10
This commit is contained in:
John Sully 2019-11-20 17:00:40 -05:00
parent 72bbf16c2f
commit f136492c45

View File

@ -99,6 +99,7 @@ client *createClient(int fd, int iel) {
* in the context of a client. When commands are executed in other
* contexts (for instance a Lua script) we need a non connected client. */
if (fd != -1) {
serverAssert(iel == (serverTL - g_pserver->rgthreadvar));
anetNonBlock(NULL,fd);
anetEnableTcpNoDelay(NULL,fd);
if (cserver.tcpkeepalive)