mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -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++;
|
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…
Reference in New Issue
Block a user