[pve-devel] [PATCH cluster 2/2] avoid undefined quorate value on startup

Dietmar Maurer dietmar at proxmox.com
Thu Jun 30 17:17:36 CEST 2016


cfs_status is defined as static value:

 static cfs_status_t cfs_status;

AFAIK such values are always initialized with zero? So this
is 0 by default, and your patch is not required?

> There's a small timespan where cfs_status.quorate is undefined,
> from the cfs_status_init() call in pmxcfs until either call
> cfs_set_quorate directly in pmxcfs.c as we are in local mode
> or the first quorum notification callback sets it.




More information about the pve-devel mailing list