summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c
index c606448f9..df1498bdd 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -4584,7 +4584,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;