HomeClusterLabs Projects

Only call qb_ipcc_disconnect when the instance is fully dereferenced.

Description

Only call qb_ipcc_disconnect when the instance is fully dereferenced.

Sometimes calling xyz_finilize() within a dispatch would
cause a crash because the qb_ipcc_disconnect actually
disconnects immediatly and frees it't memory. whereas
the corosync structure is reference counted. So this
makes use of the reference counting to only call
qb_ipcc_disconnect when it is fully dereferenced.

Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>

Details

Provenance
Angus Salkeld <asalkeld@redhat.com>Authored on Apr 3 2012, 2:03 AM
Parents
rC4b2cfc3f6bea: Convert udpu example to use nodelist
Branches
Unknown
Tags
Unknown

Event Timeline