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

Function generate_transition_key

lib/common/utils.c:859–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859char *
860generate_transition_key(int transition_id, int action_id, int target_rc, const char *node)
861{
862 int len = 40;
863 char *fail_state = NULL;
864
865 CRM_CHECK(node != NULL, return NULL);
866
867 len += strlen(node);
868
869 fail_state = calloc(1, len);
870 if (fail_state != NULL) {
871 snprintf(fail_state, len, "%d:%d:%d:%s", action_id, transition_id, target_rc, node);
872 }
873 return fail_state;
874}
875
876gboolean
877decode_transition_key(const char *key, char **uuid, int *transition_id, int *action_id,

Callers 6

send_lrm_rsc_opFunction · 0.85
create_operation_updateFunction · 0.85
te_fence_nodeFunction · 0.85
te_crm_commandFunction · 0.85
cib_action_updateFunction · 0.85
te_rsc_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected