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

Function assign_node

pengine/clone.c:888–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888static void
889assign_node(resource_t * rsc, node_t * node, gboolean force)
890{
891 if (rsc->children) {
892
893 GListPtr gIter = rsc->children;
894
895 for (; gIter != NULL; gIter = gIter->next) {
896 resource_t *child_rsc = (resource_t *) gIter->data;
897
898 native_assign_node(child_rsc, NULL, node, force);
899 }
900
901 return;
902 }
903 native_assign_node(rsc, NULL, node, force);
904}
905
906static resource_t *
907find_compatible_child_by_node(resource_t * local_child, node_t * local_node, resource_t * rsc,

Callers 2

clone_rsc_colocation_rhFunction · 0.85

Calls 1

native_assign_nodeFunction · 0.85

Tested by

no test coverage detected