summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-02-28 18:03:51 +0100
committerantirez <antirez@gmail.com>2018-02-28 18:05:53 +0100
commit2717be63922df9775f1ae6f25163afe500646f3d (patch)
tree00b3507b44a6a054795f15d877a795cc8af4215d
parent9d797fe1289138072d8b5287957da97685c21204 (diff)
downloadredis-2717be63922df9775f1ae6f25163afe500646f3d.tar.gz
Actually use ae_flags to add AE_BARRIER if needed.
Many thanks to @Plasma that spotted this problem reviewing the code.
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 67388194b..2d314d597 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -1023,7 +1023,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);