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
0387f869
Commit
0387f869
authored
May 25, 2013
by
antirez
Browse files
Fixed a bug in no queueing replies to master.
parent
7ae29d5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
0387f869
...
...
@@ -124,7 +124,8 @@ redisClient *createClient(int fd) {
* data to the clients output buffers. If the function returns REDIS_ERR no
* data should be appended to the output buffers. */
int
prepareClientToWrite
(
redisClient
*
c
)
{
if
(
c
->
flags
&
(
REDIS_LUA_CLIENT
|
REDIS_MASTER
))
return
REDIS_OK
;
if
(
c
->
flags
&
REDIS_LUA_CLIENT
)
return
REDIS_OK
;
if
(
c
->
flags
&
REDIS_MASTER
)
return
REDIS_ERR
;
if
(
c
->
fd
<=
0
)
return
REDIS_ERR
;
/* Fake client */
if
(
c
->
bufpos
==
0
&&
listLength
(
c
->
reply
)
==
0
&&
(
c
->
replstate
==
REDIS_REPL_NONE
||
...
...
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