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 febe102bf6
commit 3e7349fdaf
3 changed files with 22 additions and 13 deletions

View File

@ -126,7 +126,7 @@ void processUnblockedClients(void) {
* the code is conceptually more correct this way. */
if (!(c->flags & CLIENT_BLOCKED)) {
if (c->querybuf && sdslen(c->querybuf) > 0) {
processInputBuffer(c);
processInputBufferAndReplicate(c);
}
}
}