Initialize one variable in struct to avoid risk (#1606)

In C, we had better initialize every variable in struct, this PR fixes
one missed variable Initialization.

---------

Signed-off-by: hwware <wen.hui.ware@gmail.com>
This commit is contained in:
Wen Hui 2025-01-28 11:37:41 -05:00 committed by GitHub
parent f695c52acb
commit ad60d6b7b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1130,6 +1130,7 @@ void clusterInit(void) {
server.cluster->failover_auth_time = 0;
server.cluster->failover_auth_count = 0;
server.cluster->failover_auth_rank = 0;
server.cluster->failover_auth_sent = 0;
server.cluster->failover_failed_primary_rank = 0;
server.cluster->failover_auth_epoch = 0;
server.cluster->cant_failover_reason = CLUSTER_CANT_FAILOVER_NONE;