fix: fix the if condition in clusterManagerShowClusterInfo
This commit is contained in:
1 parent
beaacf96cd
commit
d41e245dab
1 file changed
+1
-1
+1
-1
@@ -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 = "";
|
||||
|
||||
Reference in new issue
Block a user