mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge pull request #5921 from vattezhang/unstable_temp
fix: fix the if condition in clusterManagerShowClusterInfo
This commit is contained in:
commit
53d1dc170c
@ -2871,7 +2871,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