HomeClusterLabs Projects

Fix: libcluster: avoid possibility of invalidating a hash table iterator

Description

Fix: libcluster: avoid possibility of invalidating a hash table iterator

Previously, pcmk_quorum_notification() iterated on the peer cache, calling
crm_update_peer_state(), which could call callbacks that could remove
multiple cache entries, thus invalidating the original iterator.
A new crm_reap_unseen_members() library interface handles this case.

Details

Provenance
kgaillotAuthored on Jun 1 2015, 12:27 PM
Parents
rPdd66c6d86bc1: Fix: Ensure peer cache management supports all stacks
Branches
Unknown
Tags
Unknown

Event Timeline