Commit e9fbc960 authored by zhaozhao.zz's avatar zhaozhao.zz Committed by antirez
Browse files

expires & blocking: handle ready keys as call()

parent 08ec8f71
...@@ -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);
......
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