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
53d1dc17
Unverified
Commit
53d1dc17
authored
Mar 13, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Mar 13, 2019
Browse files
Merge pull request #5921 from vattezhang/unstable_temp
fix: fix the if condition in clusterManagerShowClusterInfo
parents
3e648907
bdc783b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
53d1dc17
...
@@ -2871,7 +2871,7 @@ static void clusterManagerShowClusterInfo(void) {
...
@@ -2871,7 +2871,7 @@ static void clusterManagerShowClusterInfo(void) {
replicas
++
;
replicas
++
;
}
}
redisReply
*
reply
=
CLUSTER_MANAGER_COMMAND
(
node
,
"DBSIZE"
);
redisReply
*
reply
=
CLUSTER_MANAGER_COMMAND
(
node
,
"DBSIZE"
);
if
(
reply
!=
NULL
||
reply
->
type
==
REDIS_REPLY_INTEGER
)
if
(
reply
!=
NULL
&&
reply
->
type
==
REDIS_REPLY_INTEGER
)
dbsize
=
reply
->
integer
;
dbsize
=
reply
->
integer
;
if
(
dbsize
<
0
)
{
if
(
dbsize
<
0
)
{
char
*
err
=
""
;
char
*
err
=
""
;
...
...
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