diff options
author | antirez <antirez@gmail.com> | 2015-02-27 22:33:54 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-02-27 22:34:18 +0100 |
commit | 938dfdc1ea651911919eb428b0a31f904ea28f1e (patch) | |
tree | 8948f8cad70f4e4a33b2797f56bc8ad2a895db71 | |
parent | 53659404e4b57e1299a7c0a89bb309ce8894ca93 (diff) | |
download | redis-938dfdc1ea651911919eb428b0a31f904ea28f1e.tar.gz |
Migrate: replace conditional with pre-computed value.
-rw-r--r-- | src/cluster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c index 748768c1c..c9096bc70 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; |