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

Function node_copy

lib/pengine/utils.c:37–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35static xmlNode *find_rsc_op_entry_helper(resource_t * rsc, const char *key, gboolean include_disabled);
36
37node_t *
38node_copy(node_t * this_node)
39{
40 node_t *new_node = NULL;
41
42 CRM_CHECK(this_node != NULL, return NULL);
43
44 new_node = calloc(1, sizeof(node_t));
45 CRM_ASSERT(new_node != NULL);
46
47 crm_trace("Copying %p (%s) to %p", this_node, this_node->details->uname, new_node);
48
49 new_node->weight = this_node->weight;
50 new_node->fixed = this_node->fixed;
51 new_node->details = this_node->details;
52
53 return new_node;
54}
55
56/* any node in list1 or list2 and not in the other gets a score of -INFINITY */
57void

Callers 14

node_list_excludeFunction · 0.85
node_hash_from_listFunction · 0.85
node_list_dupFunction · 0.85
custom_actionFunction · 0.85
find_actionsFunction · 0.85
resource_node_scoreFunction · 0.85
unpack_domainsFunction · 0.85
process_rsc_stateFunction · 0.85
rsc2node_newFunction · 0.85
native_assign_nodeFunction · 0.85
sort_clone_instanceFunction · 0.85
generate_location_ruleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected