Make pending buffer processing safe for CLIENT_MASTER client.

Related to #5305.
This commit is contained in:
antirez
2018-09-03 18:17:25 +02:00
parent 42bce87a83
commit 17233080c3
3 changed files with 22 additions and 13 deletions

View File

@ -1418,6 +1418,7 @@ void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask);
void *addDeferredMultiBulkLength(client *c);
void setDeferredMultiBulkLength(client *c, void *node, long length);
void processInputBuffer(client *c);
void processInputBufferAndReplicate(client *c);
void acceptHandler(aeEventLoop *el, int fd, void *privdata, int mask);
void acceptTcpHandler(aeEventLoop *el, int fd, void *privdata, int mask);
void acceptUnixHandler(aeEventLoop *el, int fd, void *privdata, int mask);