mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
expires & blocking: handle ready keys as call()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user