Skip to content

Commit

Permalink
Add afterCommand in handleClientsBlockedOnKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhw committed Sep 14, 2021
1 parent 9d7e051 commit 15ba4c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/blocked.c
Expand Up @@ -301,6 +301,7 @@ void serveClientsBlockedOnListKey(robj *o, readyList *rl) {
}
updateStatsOnUnblock(receiver, 0, elapsedUs(replyTimer));
unblockClient(receiver);
afterCommand(receiver);

if (dstkey) decrRefCount(dstkey);
decrRefCount(value);
Expand Down Expand Up @@ -349,6 +350,7 @@ void serveClientsBlockedOnSortedSetKey(robj *o, readyList *rl) {
genericZpopCommand(receiver,&rl->key,1,where,1,NULL);
updateStatsOnUnblock(receiver, 0, elapsedUs(replyTimer));
unblockClient(receiver);
afterCommand(receiver);
zcard--;

/* Replicate the command. */
Expand Down Expand Up @@ -466,6 +468,7 @@ void serveClientsBlockedOnStreamKey(robj *o, readyList *rl) {
* valid, so we must do the setup above before
* this call. */
unblockClient(receiver);
afterCommand(receiver);
}
}
}
Expand Down Expand Up @@ -516,6 +519,7 @@ void serveClientsBlockedOnKeyByModule(readyList *rl) {
updateStatsOnUnblock(receiver, 0, elapsedUs(replyTimer));

moduleUnblockClient(receiver);
afterCommand(receiver);
}
}
}
Expand Down

0 comments on commit 15ba4c0

Please sign in to comment.