Skip to content

Commit

Permalink
Don't set need_update_route on OOM
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Svensson <[email protected]>
  • Loading branch information
zuiderkwast and bjosv authored Aug 28, 2023
1 parent 4d57272 commit ba3728c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hircluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -2286,7 +2286,8 @@ static void *redis_cluster_command_execute(redisClusterContext *cc,
/* We may need to update the slotmap if this node is removed from the
* cluster, but the current request may have already timed out so we
* schedule it for later. */
cc->need_update_route = 1;
if (c->err != REDIS_ERR_OOM)
cc->need_update_route = 1;
goto error;
}

Expand Down

0 comments on commit ba3728c

Please sign in to comment.