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
071da984
Commit
071da984
authored
Nov 30, 2018
by
antirez
Browse files
RESP3: blocked.c updated.
parent
9705c12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blocked.c
View file @
071da984
...
@@ -187,7 +187,7 @@ void replyToBlockedClientTimedOut(client *c) {
...
@@ -187,7 +187,7 @@ void replyToBlockedClientTimedOut(client *c) {
if
(
c
->
btype
==
BLOCKED_LIST
||
if
(
c
->
btype
==
BLOCKED_LIST
||
c
->
btype
==
BLOCKED_ZSET
||
c
->
btype
==
BLOCKED_ZSET
||
c
->
btype
==
BLOCKED_STREAM
)
{
c
->
btype
==
BLOCKED_STREAM
)
{
addReply
(
c
,
shared
.
nullmultibulk
);
addReply
Null
(
c
);
}
else
if
(
c
->
btype
==
BLOCKED_WAIT
)
{
}
else
if
(
c
->
btype
==
BLOCKED_WAIT
)
{
addReplyLongLong
(
c
,
replicationCountAcksByOffset
(
c
->
bpop
.
reploffset
));
addReplyLongLong
(
c
,
replicationCountAcksByOffset
(
c
->
bpop
.
reploffset
));
}
else
if
(
c
->
btype
==
BLOCKED_MODULE
)
{
}
else
if
(
c
->
btype
==
BLOCKED_MODULE
)
{
...
@@ -436,8 +436,8 @@ void handleClientsBlockedOnKeys(void) {
...
@@ -436,8 +436,8 @@ void handleClientsBlockedOnKeys(void) {
* the name of the stream and the data we
* the name of the stream and the data we
* extracted from it. Wrapped in a single-item
* extracted from it. Wrapped in a single-item
* array, since we have just one key. */
* array, since we have just one key. */
addReply
MultiBulk
Len
(
receiver
,
1
);
addReply
Array
Len
(
receiver
,
1
);
addReply
MultiBulk
Len
(
receiver
,
2
);
addReply
Array
Len
(
receiver
,
2
);
addReplyBulk
(
receiver
,
rl
->
key
);
addReplyBulk
(
receiver
,
rl
->
key
);
streamPropInfo
pi
=
{
streamPropInfo
pi
=
{
...
...
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