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

Function get_complex_task

lib/pengine/utils.c:984–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982}
983
984enum action_tasks
985get_complex_task(resource_t * rsc, const char *name, gboolean allow_non_atomic)
986{
987 enum action_tasks task = text2task(name);
988
989 if (rsc == NULL) {
990 return task;
991
992 } else if (allow_non_atomic == FALSE || rsc->variant == pe_native) {
993 switch (task) {
994 case stopped_rsc:
995 case started_rsc:
996 case action_demoted:
997 case action_promoted:
998 crm_trace("Folding %s back into its atomic counterpart for %s", name, rsc->id);
999 return task - 1;
1000 break;
1001 default:
1002 break;
1003 }
1004 }
1005 return task;
1006}
1007
1008action_t *
1009find_first_action(GListPtr input, const char *uuid, const char *task, node_t * on_node)

Callers 2

clone_child_actionFunction · 0.85
group_action_flagsFunction · 0.85

Calls 1

text2taskFunction · 0.85

Tested by

no test coverage detected