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

Function generate_op_key

lib/common/utils.c:688–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688char *
689generate_op_key(const char *rsc_id, const char *op_type, int interval)
690{
691 int len = 35;
692 char *op_id = NULL;
693
694 CRM_CHECK(rsc_id != NULL, return NULL);
695 CRM_CHECK(op_type != NULL, return NULL);
696
697 len += strlen(op_type);
698 len += strlen(rsc_id);
699 op_id = calloc(1, len);
700 CRM_CHECK(op_id != NULL, return NULL);
701 sprintf(op_id, "%s_%s_%d", rsc_id, op_type, interval);
702 return op_id;
703}
704
705gboolean
706parse_op_key(const char *key, char **rsc_id, char **op_type, int *interval)

Callers 15

create_action_nameFunction · 0.85
create_operation_updateFunction · 0.85
find_rsc_op_entry_helperFunction · 0.85
process_recurringFunction · 0.85
native_assign_nodeFunction · 0.85
CancelXmlOpFunction · 0.85
check_action_definitionFunction · 0.85
check_actions_forFunction · 0.85
wait_for_probeFunction · 0.85
find_actions_by_taskFunction · 0.85
rsc_order_firstFunction · 0.85
convert_non_atomic_uuidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected