HomeClusterLabs Projects

High: attrd: Fix the synchronization of attributes

Description

High: attrd: Fix the synchronization of attributes

The logic in attrd_peer_update() from 361e125:

if(a == NULL) {
    if (safe_str_eq(op, ATTRD_OP_UPDATE) || safe_str_eq(op, ATTRD_OP_UPDATE_BOTH)) {
        a = create_attribute(xml);
    } else {
        crm_warn("Update error (attribute %s not found)", attr);
        return;
    }
}

ignored the xml children of ATTRD_OP_SYNC_RESPONSE and broke the
synchronization of attributes.

Details

Provenance
gao-yanAuthored on Apr 26 2016, 10:14 AM
Parents
rPf4c93f1b7f5e: Merge pull request #976 from kgaillot/1.1
Branches
Unknown
Tags
Unknown

Event Timeline