Actually use ae_flags to add AE_BARRIER if needed.

Many thanks to @Plasma that spotted this problem reviewing the code.
This commit is contained in:
antirez 2018-02-28 18:03:51 +01:00
parent fb7560bcbb
commit e09c8c102a

View File

@ -1025,7 +1025,7 @@ int handleClientsWithPendingWrites(void) {
{
ae_flags |= AE_BARRIER;
}
if (aeCreateFileEvent(server.el, c->fd, AE_WRITABLE,
if (aeCreateFileEvent(server.el, c->fd, ae_flags,
sendReplyToClient, c) == AE_ERR)
{
freeClientAsync(c);