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

Function native_deallocate

pengine/utils.c:313–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void
314native_deallocate(resource_t * rsc)
315{
316 if (rsc->allocated_to) {
317 node_t *old = rsc->allocated_to;
318
319 crm_info("Deallocating %s from %s", rsc->id, old->details->uname);
320 set_bit(rsc->flags, pe_rsc_provisional);
321 rsc->allocated_to = NULL;
322
323 old->details->allocated_rsc = g_list_remove(old->details->allocated_rsc, rsc);
324 old->details->num_resources--;
325 /* old->count--; */
326 calculate_utilization(old, rsc, FALSE);
327 free(old);
328 }
329}
330
331gboolean
332native_assign_node(resource_t * rsc, GListPtr nodes, node_t * chosen, gboolean force)

Callers 2

native_assign_nodeFunction · 0.85
color_instanceFunction · 0.85

Calls 1

calculate_utilizationFunction · 0.85

Tested by

no test coverage detected