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
22c166da
Commit
22c166da
authored
Aug 14, 2018
by
zhaozhao.zz
Committed by
antirez
Aug 29, 2018
Browse files
block: format code
parent
c03c5913
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blocked.c
View file @
22c166da
...
@@ -269,7 +269,7 @@ void handleClientsBlockedOnKeys(void) {
...
@@ -269,7 +269,7 @@ void handleClientsBlockedOnKeys(void) {
robj
*
dstkey
=
receiver
->
bpop
.
target
;
robj
*
dstkey
=
receiver
->
bpop
.
target
;
int
where
=
(
receiver
->
lastcmd
&&
int
where
=
(
receiver
->
lastcmd
&&
receiver
->
lastcmd
->
proc
==
blpopCommand
)
?
receiver
->
lastcmd
->
proc
==
blpopCommand
)
?
LIST_HEAD
:
LIST_TAIL
;
LIST_HEAD
:
LIST_TAIL
;
robj
*
value
=
listTypePop
(
o
,
where
);
robj
*
value
=
listTypePop
(
o
,
where
);
if
(
value
)
{
if
(
value
)
{
...
@@ -285,7 +285,7 @@ void handleClientsBlockedOnKeys(void) {
...
@@ -285,7 +285,7 @@ void handleClientsBlockedOnKeys(void) {
{
{
/* If we failed serving the client we need
/* If we failed serving the client we need
* to also undo the POP operation. */
* to also undo the POP operation. */
listTypePush
(
o
,
value
,
where
);
listTypePush
(
o
,
value
,
where
);
}
}
if
(
dstkey
)
decrRefCount
(
dstkey
);
if
(
dstkey
)
decrRefCount
(
dstkey
);
...
...
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