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
bdc783b4
Commit
bdc783b4
authored
Mar 12, 2019
by
vattezhang
Browse files
fix: fix the if condition in clusterManagerShowClusterInfo
parent
8a46d32b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
bdc783b4
...
...
@@ -2841,7 +2841,7 @@ static void clusterManagerShowClusterInfo(void) {
replicas
++
;
}
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
;
if
(
dbsize
<
0
)
{
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