Merge pull request #6554 from soloestoy/unblock-as-call

expires & blocking: handle ready keys as call()
This commit is contained in:
Salvatore Sanfilippo 2019-11-19 11:14:05 +01:00 committed by GitHub
commit 6a9851c7f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -514,6 +514,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);
@ -530,6 +533,8 @@ void handleClientsBlockedOnKeys(void) {
serveClientsBlockedOnKeyByModule(rl); serveClientsBlockedOnKeyByModule(rl);
} }
server.call_depth++;
/* Free this item. */ /* Free this item. */
decrRefCount(rl->key); decrRefCount(rl->key);
zfree(rl); zfree(rl);