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

Function find_clone_instance

lib/pengine/clone.c:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80resource_t *
81find_clone_instance(resource_t * rsc, const char *sub_id, pe_working_set_t * data_set)
82{
83 char *child_id = NULL;
84 resource_t *child = NULL;
85 const char *child_base = NULL;
86 clone_variant_data_t *clone_data = NULL;
87
88 get_clone_variant_data(clone_data, rsc);
89
90 child_base = ID(clone_data->xml_obj_child);
91 child_id = crm_concat(child_base, sub_id, ':');
92 child = pe_find_resource(rsc->children, child_id);
93
94 free(child_id);
95 return child;
96}
97
98resource_t *
99create_child_clone(resource_t * rsc, int sub_id, pe_working_set_t * data_set)

Callers 3

unpack_simple_rsc_orderFunction · 0.85
unpack_simple_colocationFunction · 0.85
unpack_simple_rsc_ticketFunction · 0.85

Calls 2

crm_concatFunction · 0.85
pe_find_resourceFunction · 0.85

Tested by

no test coverage detected