Skip to content

Commit

Permalink
else if
Browse files Browse the repository at this point in the history
  • Loading branch information
kedixa committed Mar 11, 2021
1 parent be08f05 commit 4acf83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factory/RedisTaskImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ bool ComplexRedisTask::need_redirect()
bool asking = false;
if (strncasecmp(reply->str, "ASK ", 4) == 0)
asking = true;
if (!asking && strncasecmp(reply->str, "MOVED ", 6) != 0)
else if (strncasecmp(reply->str, "MOVED ", 6) != 0)
return false;

if (redirect_count_ >= REDIS_REDIRECT_MAX)
Expand Down

0 comments on commit 4acf83a

Please sign in to comment.