Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c77081a4
Commit
c77081a4
authored
Feb 27, 2015
by
antirez
Browse files
Migrate: replace conditional with pre-computed value.
parent
4f56f035
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
c77081a4
...
@@ -4584,7 +4584,7 @@ try_again:
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment