From e9fbc960337629985dc9a75ea5634f3a1f492eb8 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Fri, 8 Nov 2019 19:06:51 +0800 Subject: [PATCH] expires & blocking: handle ready keys as call() --- src/blocked.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/blocked.c b/src/blocked.c index 2b43f2b75..499b63540 100644 --- a/src/blocked.c +++ b/src/blocked.c @@ -262,6 +262,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); if (o != NULL && o->type == OBJ_LIST) { @@ -458,6 +461,8 @@ void handleClientsBlockedOnKeys(void) { } } + server.call_depth++; + /* Free this item. */ decrRefCount(rl->key); zfree(rl);