fix: fix the if condition in clusterManagerShowClusterInfo
This commit is contained in:
parent
8a46d32be2
commit
bdc783b472
@ -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 = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user