Migrate: replace conditional with pre-computed value.

This commit is contained in:
antirez
2015-02-27 22:33:54 +01:00
parent 53659404e4
commit 938dfdc1ea

View File

@ -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;