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
6a9851c7
Unverified
Commit
6a9851c7
authored
Nov 19, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Nov 19, 2019
Browse files
Merge pull request #6554 from soloestoy/unblock-as-call
expires & blocking: handle ready keys as call()
parents
77ad9aaa
7059ecee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blocked.c
View file @
6a9851c7
...
...
@@ -514,6 +514,9 @@ void handleClientsBlockedOnKeys(void) {
* we can safely call signalKeyAsReady() against this key. */
dictDelete
(
rl
->
db
->
ready_keys
,
rl
->
key
);
server
.
call_depth
++
;
updateCachedTime
(
0
);
/* Serve clients blocked on list key. */
robj
*
o
=
lookupKeyWrite
(
rl
->
db
,
rl
->
key
);
...
...
@@ -530,6 +533,8 @@ void handleClientsBlockedOnKeys(void) {
serveClientsBlockedOnKeyByModule
(
rl
);
}
server
.
call_depth
++
;
/* Free this item. */
decrRefCount
(
rl
->
key
);
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