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
e9fbc960
Commit
e9fbc960
authored
Nov 08, 2019
by
zhaozhao.zz
Committed by
antirez
Nov 19, 2019
Browse files
expires & blocking: handle ready keys as call()
parent
08ec8f71
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blocked.c
View file @
e9fbc960
...
@@ -262,6 +262,9 @@ void handleClientsBlockedOnKeys(void) {
...
@@ -262,6 +262,9 @@ void handleClientsBlockedOnKeys(void) {
* we can safely call signalKeyAsReady() against this key. */
* we can safely call signalKeyAsReady() against this key. */
dictDelete
(
rl
->
db
->
ready_keys
,
rl
->
key
);
dictDelete
(
rl
->
db
->
ready_keys
,
rl
->
key
);
server
.
call_depth
++
;
updateCachedTime
(
0
);
/* Serve clients blocked on list key. */
/* Serve clients blocked on list key. */
robj
*
o
=
lookupKeyWrite
(
rl
->
db
,
rl
->
key
);
robj
*
o
=
lookupKeyWrite
(
rl
->
db
,
rl
->
key
);
if
(
o
!=
NULL
&&
o
->
type
==
OBJ_LIST
)
{
if
(
o
!=
NULL
&&
o
->
type
==
OBJ_LIST
)
{
...
@@ -458,6 +461,8 @@ void handleClientsBlockedOnKeys(void) {
...
@@ -458,6 +461,8 @@ void handleClientsBlockedOnKeys(void) {
}
}
}
}
server
.
call_depth
++
;
/* Free this item. */
/* Free this item. */
decrRefCount
(
rl
->
key
);
decrRefCount
(
rl
->
key
);
zfree
(
rl
);
zfree
(
rl
);
...
...
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