Commit bdc783b4 authored by vattezhang's avatar vattezhang
Browse files

fix: fix the if condition in clusterManagerShowClusterInfo

parent 8a46d32b
...@@ -2841,7 +2841,7 @@ static void clusterManagerShowClusterInfo(void) { ...@@ -2841,7 +2841,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 = "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment