| 311 | } |
| 312 | |
| 313 | void |
| 314 | native_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 | |
| 331 | gboolean |
| 332 | native_assign_node(resource_t * rsc, GListPtr nodes, node_t * chosen, gboolean force) |
no test coverage detected