Commit 7059ecee authored by zhaozhao.zz's avatar zhaozhao.zz
Browse files

expires & blocking: handle ready keys as call()

parent 0f026af1
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment