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:
parent
f695c52acb
commit
ad60d6b7b3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user