HomeClusterLabs Projects

Low: add debugging aid to help spot missing set_msg_callback()s on heartbeat

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Low: add debugging aid to help spot missing set_msg_callback()s on heartbeat

In ha_msg_dispatch(), change from rcvmsg() to readmsg().
rcvmsg() is internally simply a wrapper around readmsg(),
which silently deletes messages without matching callback.

Use readmsg() directly here. It will only return unprocessed (by
callbacks) messages, so log a warning, notice or debug message
depending on message header information, and ha_msg_del() it ourselves.

Details

Provenance
Lars Ellenberg <lars.ellenberg@linbit.com>Authored on Dec 9 2014, 4:58 AM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.