Unverified Commit 53d1dc17 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #5921 from vattezhang/unstable_temp

fix: fix the if condition in clusterManagerShowClusterInfo
parents 3e648907 bdc783b4
...@@ -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 = "";
......
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