MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / clone_append_meta

Function clone_append_meta

pengine/clone.c:1534–1557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1532}
1533
1534void
1535clone_append_meta(resource_t * rsc, xmlNode * xml)
1536{
1537 char *name = NULL;
1538 clone_variant_data_t *clone_data = NULL;
1539
1540 get_clone_variant_data(clone_data, rsc);
1541
1542 name = crm_meta_name(XML_RSC_ATTR_UNIQUE);
1543 crm_xml_add(xml, name, is_set(rsc->flags, pe_rsc_unique) ? "true" : "false");
1544 free(name);
1545
1546 name = crm_meta_name(XML_RSC_ATTR_NOTIFY);
1547 crm_xml_add(xml, name, is_set(rsc->flags, pe_rsc_notify) ? "true" : "false");
1548 free(name);
1549
1550 name = crm_meta_name(XML_RSC_ATTR_INCARNATION_MAX);
1551 crm_xml_add_int(xml, name, clone_data->clone_max);
1552 free(name);
1553
1554 name = crm_meta_name(XML_RSC_ATTR_INCARNATION_NODEMAX);
1555 crm_xml_add_int(xml, name, clone_data->clone_node_max);
1556 free(name);
1557}
1558
1559GHashTable *
1560clone_merge_weights(resource_t * rsc, const char *rhs, GHashTable * nodes, const char *attr,

Callers 1

master_append_metaFunction · 0.85

Calls 4

crm_meta_nameFunction · 0.85
crm_xml_addFunction · 0.85
is_setFunction · 0.85
crm_xml_add_intFunction · 0.85

Tested by

no test coverage detected