if(constraint->rsc_lh == constraint->rsc_rh) { do_interleave = TRUE;
if(constraint->rsc_rh->variant == pe_incarnation) {
void incarnation_rsc_colocation_lh(rsc_colocation_t *constraint){	gboolean do_interleave = FALSE;	resource_t *rsc = constraint->rsc_lh;	incarnation_variant_data_t *incarnation_data = NULL;	incarnation_variant_data_t *incarnation_data_rh = NULL;		if(rsc == NULL) {		pe_err("rsc_lh was NULL for %s", constraint->id);		return;	} else if(constraint->rsc_rh == NULL) {		pe_err("rsc_rh was NULL for %s", constraint->id);		return;			} else if(constraint->strength != pecs_must_not) {		pe_warn("rsc_colocations other than \"-INFINITY\" "			 "are not supported for incarnation resources");		return;			} else {		crm_debug_4("Processing constraints from %s", rsc->id);	}		get_incarnation_variant_data(incarnation_data, rsc);	if(constraint->rsc_lh == constraint->rsc_rh) {		do_interleave = TRUE;		get_incarnation_variant_data(			incarnation_data_rh, constraint->rsc_rh);	} else if(constraint->rsc_rh->variant == pe_incarnation) {		get_incarnation_variant_data(			incarnation_data_rh, constraint->rsc_rh);		if(incarnation_data->interleave == FALSE) {		} else if(incarnation_data_rh->interleave == FALSE) {		} else if(incarnation_data->incarnation_max			  == incarnation_data_rh->incarnation_max) {			do_interleave = TRUE;		}	}		if(do_interleave) {		resource_t *child_lh = NULL;		resource_t *child_rh = NULL;		resource_t *parent_rh = constraint->rsc_rh;				GListPtr iter_lh = incarnation_data->child_list;		GListPtr iter_rh = incarnation_data_rh->child_list;				while(iter_lh != NULL && iter_rh != NULL) {			child_lh = iter_lh->data;			child_rh = iter_rh->data;			iter_lh = iter_lh->next;			iter_rh = iter_rh->next;						constraint->rsc_rh = child_rh;			child_rh->fns->rsc_colocation_rh(child_lh, constraint);		}		constraint->rsc_rh = parent_rh;		return;	}			slist_iter(		child_rsc, resource_t, incarnation_data->child_list, lpc,				crm_action_debug_3(print_resource("LHS", child_rsc, TRUE));		child_rsc->fns->rsc_colocation_rh(child_rsc, constraint);		);}