Skip to content

Commit

Permalink
ndb_redis: clean up response on moved reply with cluster mode on
Browse files Browse the repository at this point in the history
(cherry picked from commit ef00062)
  • Loading branch information
miconda committed Jul 6, 2022
1 parent c4465cf commit bc1e222
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/ndb_redis/redis_client.c
Expand Up @@ -1165,6 +1165,7 @@ redisReply* redisc_exec_argv(redisc_server_t *rsrv, int argc, const char **argv,
if(res)
{
if (check_cluster_reply(res, &rsrv)) {
freeReplyObject(res);
goto again;
}
return res;
Expand All @@ -1175,6 +1176,7 @@ redisReply* redisc_exec_argv(redisc_server_t *rsrv, int argc, const char **argv,
res = redisCommandArgv(rsrv->ctxRedis, argc, argv, argvlen);
if (res) {
if (check_cluster_reply(res, &rsrv)) {
freeReplyObject(res);
goto again;
}
}
Expand Down

0 comments on commit bc1e222

Please sign in to comment.