mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
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++;
|
||||
}
|
||||
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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user