Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2717be63
Commit
2717be63
authored
Feb 28, 2018
by
antirez
Browse files
Actually use ae_flags to add AE_BARRIER if needed.
Many thanks to @Plasma that spotted this problem reviewing the code.
parent
9d797fe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
2717be63
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment