Migrate: replace conditional with pre-computed value.
This commit is contained in:
parent
4f56f035a7
commit
c77081a45a
@ -4584,7 +4584,7 @@ try_again:
|
|||||||
/* On error assume that last_dbid is no longer valid. */
|
/* On error assume that last_dbid is no longer valid. */
|
||||||
cs->last_dbid = -1;
|
cs->last_dbid = -1;
|
||||||
addReplyErrorFormat(c,"Target instance replied with error: %s",
|
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 {
|
} else {
|
||||||
/* Update the last_dbid in migrateCachedSocket */
|
/* Update the last_dbid in migrateCachedSocket */
|
||||||
cs->last_dbid = dbid;
|
cs->last_dbid = dbid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user