From 938dfdc1ea651911919eb428b0a31f904ea28f1e Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 27 Feb 2015 22:33:54 +0100 Subject: [PATCH] Migrate: replace conditional with pre-computed value. --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 748768c1..c9096bc7 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -4587,7 +4587,7 @@ try_again: /* On error assume that last_dbid is no longer valid. */ cs->last_dbid = -1; addReplyErrorFormat(c,"Target instance replied with error: %s", - (cs->last_dbid != dbid && buf1[0] == '-') ? buf1+1 : buf2+1); + (select && buf1[0] == '-') ? buf1+1 : buf2+1); } else { /* Update the last_dbid in migrateCachedSocket */ cs->last_dbid = dbid;