Skip to content

Commit

Permalink
fix: nchan_stub_status incorrectly reported redis queued commands whe…
Browse files Browse the repository at this point in the history
…n using nostore mode
  • Loading branch information
slact committed Oct 7, 2021
1 parent eb7b39c commit 934b22e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/store/redis/rdsstore.c
Original file line number Diff line number Diff line change
Expand Up @@ -2369,6 +2369,8 @@ static void redisPublishNostoreQueuedCheckCallback(redisAsyncContext *c, void *r
redisReply *reply=r;

redis_node_t *node = c->data;
node->pending_commands--;
nchan_update_stub_status(redis_pending_commands, -1);

if(reply && !CHECK_REPLY_STATUSVAL(reply, "QUEUED")) {
if(!nodeset_node_reply_keyslot_ok(node, reply)) {
Expand Down Expand Up @@ -2565,6 +2567,7 @@ static void get_subscriber_info_id_callback(redisAsyncContext *c, void *r, void

redis_node_t *node = c->data;
node->pending_commands--;
nchan_update_stub_status(redis_pending_commands, -1);

callback_pt cb = d->cb;
void *cb_pd = d->pd;
Expand Down

0 comments on commit 934b22e

Please sign in to comment.