[Pacemaker] the behavior when deleting the attribute while DC is electing

Yuichi SEINO seino.cluster2 at gmail.com
Thu Jun 13 11:29:37 UTC 2013


Hi,

I have a question.
When the attribute is updated while DC is electing, the attribute is
refreshed after the electing DC finished. However, when the attribute
is deleted while DC is electing, the attribute failed to be refreshed.
So,  the attribute remain the old value. Are you correct about this?

I looked at attrd.c. When the attribute is refreshed, the following
function is called.
If the attribute is deleted, then entry->value is NULL. Therefore, the
attribute isn't refreshed.

update_for_hash_entry(gpointer key, gpointer value, gpointer user_data)
{
    attr_hash_entry_t *entry = value;

    if (entry->value != NULL) {
        attrd_timer_callback(value);
    }
}

Sincerely,
Yuichi

--
Yuichi SEINO
METROSYSTEMS CORPORATION
E-mail:seino.cluster2 at gmail.com




More information about the Pacemaker mailing list